Override Node State
1115 6 0- anon_user_95266836
- Member
- 64 posts
- Joined: April 2022
- Offline
Can I bind a custom Python state to SOP node? I mean node like PolyExtrude, not HDA. In Python script, I can activate custom state for any node. But if I exit the state and press Enter, the node's state is activated. I would like to automatically start my own state. Is it possible? There is no such information in the documentation.
- mabelzile
- Staff
- 412 posts
- Joined: Feb. 2018
- Offline
- anon_user_95266836
- Member
- 64 posts
- Joined: April 2022
- Offline
- SWest
- Member
- 313 posts
- Joined: Oct. 2016
- Offline
I would like to automatically start my own state. Is it possible?
If remembering correctly I used a subnet and converted it to a rig pose. Then I think if you get the scene_viewer there is some merhod like enterDefaultState maybe. Can check later if you need it. So I got the rig handles activated like that. It is a bit hackish but works for me.
Edited by SWest - Oct. 12, 2023 13:59:44
Interested in character concepts, modeling, rigging, and animation. Related tool dev with Py and VEX.
- anon_user_95266836
- Member
- 64 posts
- Joined: April 2022
- Offline
SWestThanks, but I don't need to activate the state with Python; the problem lies elsewhere. I was wondering if it's possible to attach a custom state, written in Python, to a node, which could then be activated by pressing Enter. I knew this was probably not possible, but I wanted to make sure by hearing an answer from the Houdini developers. I received a responseI would like to automatically start my own state. Is it possible?
If remembering correctly I used a subnet and converted it to a rig pose. Then I think if you get the scene_viewer there is some merhod like enterDefaultState maybe. Can check later if you need it. So I got the rig handles activated like that. It is a bit hackish but works for me.
- mabelzile
- Staff
- 412 posts
- Joined: Feb. 2018
- Offline
Alexey_VanzhulaSWestThanks, but I don't need to activate the state with Python; the problem lies elsewhere. I was wondering if it's possible to attach a custom state, written in Python, to a node, which could then be activated by pressing Enter. I knew this was probably not possible, but I wanted to make sure by hearing an answer from the Houdini developers. I received a responseI would like to automatically start my own state. Is it possible?
If remembering correctly I used a subnet and converted it to a rig pose. Then I think if you get the scene_viewer there is some merhod like enterDefaultState maybe. Can check later if you need it. So I got the rig handles activated like that. It is a bit hackish but works for me.
You can only do that with an HDA node by setting the `Default State` input field with the state type name.
- anon_user_95266836
- Member
- 64 posts
- Joined: April 2022
- Offline
mabelzileYes, I know and use this. Just having the ability to replace the state of a simple node with your own would be a fantastic opportunityAlexey_VanzhulaSWestThanks, but I don't need to activate the state with Python; the problem lies elsewhere. I was wondering if it's possible to attach a custom state, written in Python, to a node, which could then be activated by pressing Enter. I knew this was probably not possible, but I wanted to make sure by hearing an answer from the Houdini developers. I received a responseI would like to automatically start my own state. Is it possible?
If remembering correctly I used a subnet and converted it to a rig pose. Then I think if you get the scene_viewer there is some merhod like enterDefaultState maybe. Can check later if you need it. So I got the rig handles activated like that. It is a bit hackish but works for me.
You can only do that with an HDA node by setting the `Default State` input field with the state type name.
-
- Quick Links