Jump to content

[solved] How do I make the object_merge node use the parent object nod


DASD

Recommended Posts

For purposes of organisation, rigging and usability I want to import geometry from the connected input of an object node (that is form the parent object level node).
For this purpose I use an object_merge node and I want to script the path in "Object n".

In the python shell

hou.node('..').inputs()[0].path() + "/"

gives me the path I need. But it does not work when I put it in the "Object n" slot and set the node scripting language to python. I tried to put the code in backticks, but that hasn't worked either.

I am thankful for all advice.^^

Edited by DASD
Link to comment
Share on other sites

- First click on the parameter and make sure it's background is reversed. This puts it into expression mode

- Now when you right-click on it, you can choose: Expressions > Edit expression

- Type in your expression and hit apply

- You should get an error, because it's not set in python yet.

- To change it to python, right click on the name and choose Expressions > Change language to Python

- Hit apply again to see that you get no more errors, then hit Accept

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...