Deleting objects based on path attribute

   3211   2   1
User Avatar
Member
2 posts
Joined: April 2016
Offline
I have a scene where I need to scatter some volumes that I've created onto the engines of a spacecraft model I've been given - Each engine has it's own pathname, so for example the right engine would be something like /“shipName”_GRP/r_wing_GRP/r_mainBooster_GEO/r_mainBooster_GEOShape and the left engine would be the same but with “L” instead.

How would I go about copying my volume to the centre point of each engine procedurally?

Thanks in advance!
User Avatar
Member
897 posts
Joined: July 2018
Offline
Do you have them in SOPs? If not use an object merge, with settings to packed and keep path as attribute.

Then, in a point wrangle (I think the path attrib is point, if I'm wrong and it's a prim attrib use a prim wrangler and @primnum instead):
if(find(s@path, ‘mainBooster’) <0)removepoint(0,@ptnum);

That should give you points to copy to.
B.Henriksson, DICE
User Avatar
Member
8554 posts
Joined: July 2007
Offline
Or you can use Blast SOP and in Group parm type something like
@path=*/r_wing_GRP/r_mainBooster_GEO/*
no spaces (it can contain exact attribute value or pattern as you see above)

choose group type based on attrib type
and check Delete Non Selected
Edited by tamte - Dec. 30, 2019 16:16:20
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links