Hello! I'm working on an HDA where I would like the user to be able to enter a view state on the press of a button, rather than hitting enter to go into the default state. Mainly because I want my default state to handle something else.
I want my the button to enter the Attribute Paint view state, sidefx_attribpaint. I have used an import block in my HDA's paramaters to import all the parameters (including invisible paramaters) from the attribute paint node within my HDA. When I set the default state to sidefx_attribpaint, everything works as expected. However, I don't want that to be the nodes default state. I would like to enter that state using a button on my HDA.
I've tried using a python callback, but I'm not having any luck unfortunately. so far I've got "hou.SceneViewer.SetCurrentState("sidefx_attribpaint")" as the callback, but that throws an error saying "hou.SceneViewer.setCurrentState"
what's the best way to enter a view state using an HDA button?
Enter view state using an HDA button?
200 0 0-
- MasonMenzies
- Member
- 1 posts
- Joined: 2月 2017
- Offline
-
- Quick Links