Jump to content

Change Node Shape in H16


Magnus Pettersson

Recommended Posts

As far as I can tell they just discuss default shape settings and the creation of custom node shapes in that thread.

I can set the default node shape in OPcustomize with opdefaultshape but i want to be able to change the shape on the fly with python. just like you would with the node color with node.setColor(hou.Color()) i would like to know if there is something similar for shapes like node.setShape("bulge") 

 

Link to comment
Share on other sites

I found a way now! It wasnt the most obvious way to change shape but this is the way i found out:

node.setUserData('nodeshape', "bulge")

to get a list of all available node shapes :

editor = hou.ui.paneTabOfType(hou.paneTabType.NetworkEditor)
shapes = editor.nodeShapes()
print shapes

 

  • Like 7
Link to comment
Share on other sites

  • 3 years later...

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