Hey guys,
I really need some help. On my asset I have a checkbox parameter and a transform handle. What I need to do is, whenever the checkbox is toggled, get the state of the checkbox and if the checkbox is checked, then bind the “tx” field on the handle to my posx parameter, and if it is unchecked, unbind “tx”. So my pseudo code is looking like…
whenever checkbox changes state
cbState = state of checkbox
if(cbState){
bind mainHandle:tx to posx parameter
}else{
unbind mainHandle:tx
}
From what I've found so far the only way to achieve this is to write script in HScript (because apparently Python can't bind handles yet) in the “scripts” section of operator type properties. I'm quite comfortable with VEX but I have no experience with HScript and so far everything I've tried to do in HScript has failed miserably (I can't even get a simple echo command to work). Is anyone able to provide me with some example code or a tutorial or something that would show me how to achieve this? I've been digging through the documentation trying to learn but I just keep hitting walls.
PS. This is a cross post from the ODForce forums. Really desperate for help!
Binding and Unbinding Handles on Digital Assets
1247 0 1- Kubaki
- Member
- 12 posts
- Joined: 5月 2015
- Offline
-
- Quick Links