
Mason Menzies
MasonMenzies
About Me
Senior Photogrammetry Artist @ That's No Moon
専門知識
Game Artist
業界:
Gamedev
Houdini Engine
Availability
Not Specified
Recent Forum Posts
Enter view state using an HDA button? 2025年5月15日16:37
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?
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?