Hi,
how could I deactivate nodes via the edit parameter interface?
in detail:
in a nullnode used as a controller for different parameters I want be able to (de)activate specific nodes for debugging purposes. How could I realize that?
Thanks in advance,
cheers
(de)activating nodes via parameter interface
5370 10 1- Follyx
- Member
- 237 posts
- Joined: June 2006
- Offline
- N-G
- Member
- 209 posts
- Joined: March 2018
- Offline
- Soothsayer
- Member
- 874 posts
- Joined: Oct. 2008
- Offline
- Follyx
- Member
- 237 posts
- Joined: June 2006
- Offline
- Follyx
- Member
- 237 posts
- Joined: June 2006
- Offline
- Follyx
- Member
- 237 posts
- Joined: June 2006
- Offline
- Soothsayer
- Member
- 874 posts
- Joined: Oct. 2008
- Offline
- sanostol
- Member
- 575 posts
- Joined: Nov. 2005
- Offline
Hi
the function to bypass a node in python is:
hou.node("/obj/geo/node").bypass(1) to set it inactive and hou.node("/obj/geo/node").bypass(0) to activate it again.
What You would need is basically a list of nodes that You can iterate over to activate/deactivate.
You can create for example shelf scripts in houdini and use this here, but to create a tool, that does not need more work all the time to adjust it, it does need some more effort.
- How do You want to maintain that list ( picking, typing )?
- Where does the list live? ( global, on a node in a network )?
- What happens if You delete or copy a node that is in the list?
- Does the tool manage nodes in one network or do You want to control other networks as well?
When You interest stays in one network, the group window in the network editor is probably Your best option.
After all this You have to ask: Is it worth it If You need a just a quick tool to get it done I guess the node group window is Your friend. If You want to get into Python and the hou thing. Go for it, this is a good exercise. There are a some places where You can place Your tools. You can create a Node that holds the functionality or the shelf.
The advantage of a node is You get a parameter interface, where You could store Your list as a string attribute and it is a perfect place for code and buttons as well.
I hope I could help
the function to bypass a node in python is:
hou.node("/obj/geo/node").bypass(1) to set it inactive and hou.node("/obj/geo/node").bypass(0) to activate it again.
What You would need is basically a list of nodes that You can iterate over to activate/deactivate.
You can create for example shelf scripts in houdini and use this here, but to create a tool, that does not need more work all the time to adjust it, it does need some more effort.
- How do You want to maintain that list ( picking, typing )?
- Where does the list live? ( global, on a node in a network )?
- What happens if You delete or copy a node that is in the list?
- Does the tool manage nodes in one network or do You want to control other networks as well?
When You interest stays in one network, the group window in the network editor is probably Your best option.
After all this You have to ask: Is it worth it If You need a just a quick tool to get it done I guess the node group window is Your friend. If You want to get into Python and the hou thing. Go for it, this is a good exercise. There are a some places where You can place Your tools. You can create a Node that holds the functionality or the shelf.
The advantage of a node is You get a parameter interface, where You could store Your list as a string attribute and it is a perfect place for code and buttons as well.
I hope I could help
- tamte
- Member
- 8726 posts
- Joined: July 2007
- Offline
If this is for HDA, the common practice is to use Switch or SwitchIf SOP to turn parts of the network On/Off
Then it's as easy as promoting the parameter and turning it into a toggle, you can also use it for non-hda setups as they also make it easy to debug stuff as you can visually see the topology of the network
And also in case of HDA you would not be able to bypass internal nodes using bypass flag once is locked, not even with python
Then it's as easy as promoting the parameter and turning it into a toggle, you can also use it for non-hda setups as they also make it easy to debug stuff as you can visually see the topology of the network
And also in case of HDA you would not be able to bypass internal nodes using bypass flag once is locked, not even with python
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- Follyx
- Member
- 237 posts
- Joined: June 2006
- Offline
- sanostol
- Member
- 575 posts
- Joined: Nov. 2005
- Offline
-
- Quick Links