Jump to content

Managing Nodes Flags With Python


lisux

Recommended Posts

Hi houdiniks

I need to get the state of the bypass flags of some nodes in python, i have been looking into the helps and wit the help command and I caouldn't find nothing related to this.

In hscript is the opset command, is this implemented in some way in python?

I have seen that every node type class have methods to manage their flags, but for the RopNode class there aren't any method for the bypass flag.

Thanks

Link to comment
Share on other sites

Hi lisux,

hmm... maybe I don't get your point but this code works perfectly with ROPs:

rop = hou.node("/out/mantra1")

if rop.isBypassed(): 
	rop.bypass(0)
else: 
	rop.bypass(1)

What more do you need?

sy.

Edited by SYmek
Link to comment
Share on other sites

Hi houdiniks

I need to get the state of the bypass flags of some nodes in python, i have been looking into the helps and wit the help command and I caouldn't find nothing related to this.

In hscript is the opset command, is this implemented in some way in python?

I have seen that every node type class have methods to manage their flags, but for the RopNode class there aren't any method for the bypass flag.

Thanks

Yes Symek This works perfectly thanks.

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