Found 4 posts.
Search results Show results as topic list.
Technical Discussion » How to catch stage update in a python_panel in Solaris?
- alexandr.sknarin
- 4 posts
- Offline
Technical Discussion » How to catch stage update in a python_panel in Solaris?
- alexandr.sknarin
- 4 posts
- Offline
Hi everyone,
I'm writing a python panel that should have a behaviour similar to a SceneGraph Tree view - it should display the most relevant state of the stage for the currently selected node.
Pypanel's OnNodePathChanged() method does it job when I select different nodes, but I also need to catch stage updates when I modify parameters on the single node. ParmTupleChanged() callback doesn't work in this case because looks like it is called right after I've changed the parameter but before stage is cooked. As a result I'm alwaus getting the state of the stage as is it was before I've made a change. It is funny how it is lagging one step behind - when I edit parameters - on every parameter change my panel updates to the previous state of the stage. The same thing is also with InputDataChanged callback as well. It looks like any node event is happening before stage state is recalculated.
Is there any other callback I could hook to that will allow me to trigger panel update if something has changed in the state of the stage for the currently selected node? I mean after stage's been re-cooked?
Thanks in advance.
I'm writing a python panel that should have a behaviour similar to a SceneGraph Tree view - it should display the most relevant state of the stage for the currently selected node.
Pypanel's OnNodePathChanged() method does it job when I select different nodes, but I also need to catch stage updates when I modify parameters on the single node. ParmTupleChanged() callback doesn't work in this case because looks like it is called right after I've changed the parameter but before stage is cooked. As a result I'm alwaus getting the state of the stage as is it was before I've made a change. It is funny how it is lagging one step behind - when I edit parameters - on every parameter change my panel updates to the previous state of the stage. The same thing is also with InputDataChanged callback as well. It looks like any node event is happening before stage state is recalculated.
Is there any other callback I could hook to that will allow me to trigger panel update if something has changed in the state of the stage for the currently selected node? I mean after stage's been re-cooked?
Thanks in advance.
Edited by alexandr.sknarin - April 17, 2024 17:59:57
Technical Discussion » How to read the help of the parm with python?
- alexandr.sknarin
- 4 posts
- Offline
Hi there.
I want to make a pypanel for a node and I need to show the same tool tips that parameters on the original houdini UI have.
I can't find anywhere how to read a help string from the given parm.
Is it even possible?
Thanks.
I want to make a pypanel for a node and I need to show the same tool tips that parameters on the original houdini UI have.
I can't find anywhere how to read a help string from the given parm.
Is it even possible?
Thanks.
Technical Discussion » How to change a mutliparm folder with python?
- alexandr.sknarin
- 4 posts
- Offline
Hello, I have a very simple Multiparm setup - each multiparm group is in it's own collapsible folder.
I need to make it work in a way so if I press on one of these apply buttons "Default Folder Name" on the collapsible folder label will be replaced with a new one from a corresponding string input. Basically I need to make hda UI somewhat dynamic - to make these folder labels to be automatically updated based on some parameter values inside.
I've sorta made it work with single folder (no multiparm) with ParmTemplateGroup but stuck with multiparm one.
Is it even possible to achieve? I mean using vanilla hda stuff like ParmTemplateGroup, without writing a custom python_panel?
Thanks in advance.
I need to make it work in a way so if I press on one of these apply buttons "Default Folder Name" on the collapsible folder label will be replaced with a new one from a corresponding string input. Basically I need to make hda UI somewhat dynamic - to make these folder labels to be automatically updated based on some parameter values inside.
I've sorta made it work with single folder (no multiparm) with ParmTemplateGroup but stuck with multiparm one.
Is it even possible to achieve? I mean using vanilla hda stuff like ParmTemplateGroup, without writing a custom python_panel?
Thanks in advance.
-
- Quick Links