Doum Posted July 12, 2013 Share Posted July 12, 2013 Hey, Is there a way to use code(python or hscript like opname() ) in the naming of a nodes? thanks Quote Link to comment Share on other sites More sharing options...
ghidra Posted July 12, 2013 Share Posted July 12, 2013 Sure, with python, for example: n = hou.node('/obj/geo1') n.setName('my_new_name') If you use the python shell, you can drag a node into the window to get the path to it. In the example I set n because on the next line in the shell, after typing n[dot] you will get a list of methods that are available. you could also just type: hou.node('/obj/geo1').setName('my_new_name') but you wont get the helpful list of methods... Quote Link to comment Share on other sites More sharing options...
Doum Posted July 12, 2013 Author Share Posted July 12, 2013 Thanks for the help! I'm not in front of houdini right now and i'm curious to know if it is possible to write that expression in the place where we name the node so we can reference the name with something else like a channel or another node? Thanks Doum 1 Quote Link to comment Share on other sites More sharing options...
LukeLetellier Posted October 23, 2016 Share Posted October 23, 2016 (edited) On 7/12/2013 at 5:21 PM, Doum said: Thanks for the help! I'm not in front of houdini right now and i'm curious to know if it is possible to write that expression in the place where we name the node so we can reference the name with something else like a channel or another node? Thanks Doum I'd like to be able to do something like this as well. Edited October 23, 2016 by LukeLetellier Quote Link to comment Share on other sites More sharing options...
Shinjipierre Posted October 23, 2016 Share Posted October 23, 2016 Just use a callback script on that changing parameter 1 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.