Full precision uv's?

I used your script and extended it to be able to set this on an entire folder. Nothing big going on here, but Hopefully this helps anyone trying to do this for more than one item. You’ll need to change the ‘/Game/Path/To/Assets’ to your asset folder path. Remember to remove any ending slashes.

import unreal

asset_reg = unreal.AssetRegistryHelpers.get_asset_registry()

assets = asset_reg.get_assets_by_path('/Game/Path/To/Assets')

for asset in assets:
	if asset.asset_class == 'StaticMesh':
		full_name = asset.get_full_name()
		print "Loading: " + full_name
		path = full_name.split(' ')[-1]
		StaticMesh = unreal.load_asset(path)
		unreal.MyBPFL.set_static_mesh_uv_precision(StaticMesh,True)
		print "Done Loading: " + full_name

print "done setting uv precision"

Lastly, after I ran this script, I had to save all my meshes then close and reopen for it to take effect. I was doing this for thousands of meshes so I’m not sure if the reopen part is necessary but saving definitely is. Thanks for the info above!

2 Likes