Jump to content

object merge name same as parent node name


Recommended Posts

Try this expression:

`opname("..")`

Edit: No, it"s wrong, this expression does not work in this field

Edit_2:

This is one of possible solutions: https://www.sidefx.com/docs/houdini17.5/hom/locations.html#node_event_files

You should create folder "sop" in your "$HOUDINI_USER_PREF_DIR/scripts" directory, and "object_merge_OnCreated.py" file in that folder:

n = kwargs["node"]
parent_name = n.parent().name()
n.setName(parent_name, unique_name=True)

This will be rename object merge node on creation with name of it parent object node. Disadvantage is that each new object merge node will be rename. Maybe there is more convenient way, i don't know.

Edited by vicvvsh
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...