anicg Posted May 18, 2020 Share Posted May 18, 2020 I need the object merge to pick up the name of the parent obj node automatically Quote Link to comment Share on other sites More sharing options...
vicvvsh Posted May 18, 2020 Share Posted May 18, 2020 (edited) 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 May 18, 2020 by vicvvsh Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.