Jump to content

Get Parent Expression


Recommended Posts

Hi everyone,

Silly question. I'm parenting a lot of Geometry objects to each other but I want to access the parent's attributes inside a SOP. As far as I can tell the best way is to use an Object_Merge node but I'm trying to avoid having to manually choose the parent object by name and wanted to know if there is an expression that will automatically find the parent object name? So I imagine (in my simple way) that there might be an expression that gets the Parent Object plugged into the input of the Child Object.

Thanks. Apologies for the simplicity but I've dug and dug and somehow I can't find any info.

Link to comment
Share on other sites

Sounds like you should be working in a SOP construct if you need the attributes that much. 

`opinputpath("..",0)`/OUT

Just make sure you always have an OUT or similar designated output node. Otherwise you can go into python land find the display flag, but that is a whole different set of issues.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...