Jump to content

Node name with python or Hscript


Recommended Posts

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

Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

  • 3 years later...
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 by LukeLetellier
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...