Dataprep New Operator to set 'Instance End Cull Distance'

Hello all,

I’m importing thousands of Datasmith actors with Heirarchical Instanced Static Mesh Actors and Components and want program on import to set Cull Distance for each Instance Static Mesh.

Not sure how to get Get Heirarchical Instanced Static Mesh Compenent Cull Distance and Set it from Editor Utility Widget Dataprep

Thanks in advance

I don’t have a HISM file to test at this moment, but I think it would go something like this.

Amazing, thanks loads for replying. I tried it but maybe I have a problem with the filter in Dataprep as it’s not working to modify the cull distance after executing

You’ll probably want to add some more debug functionality like printing out how many actors / components it finds. What I think is happening is that it isn’t finding any HISM actors. That ForestUnderstory actor is just a plain old actor that happens to have a HISM component. So next thing to change would be to filter by components instead of actors (actually, I can’t see if that’s what you’re doing.) Or filter by name and then get the component to make sure you’re getting access to it properly.

The other thing is that HISMs might not get updated inside the Dataprep editor, so you’ll have to commit the import to the project to see if it worked.

2 Likes