Hello hive. A quick question:
Is it possible to execute a python code on a node select/deselect event?
For example If I select a node, some other nodes should get a different color and If the node becomes deselected those other nodes would revert to their default colors.
Run python script if a node is selected.
1390 1 0- HexEgg
- Member
- 3 posts
- Joined: Nov. 2016
- Offline
- jjayakumar
- Member
- 106 posts
- Joined: June 2011
- Offline
Hi there!
You can add event callbacks to nodes.
Please refer
http://www.sidefx.com/docs/houdini/hom/hou/Node.html#addEventCallback [www.sidefx.com]
http://www.sidefx.com/docs/houdini/hom/hou/nodeEventType.html [www.sidefx.com]
I guess you could cook something with the use of the “ChildSelectionChanged” event.
Hope it helps
Cheers
-J
You can add event callbacks to nodes.
Please refer
http://www.sidefx.com/docs/houdini/hom/hou/Node.html#addEventCallback [www.sidefx.com]
http://www.sidefx.com/docs/houdini/hom/hou/nodeEventType.html [www.sidefx.com]
I guess you could cook something with the use of the “ChildSelectionChanged” event.
Hope it helps
Cheers
-J
-
- Quick Links