MSmith
09-27-2009, 03:56 PM
Hey guys...I was hoping one of you could answer a question for me. I've been playing around with a custom character rig that uses script controllers to automatically select and adjust other objects when selected (like I select the foot bone and move it it automatically selects the IK controller and moves it, then if I switch to rotate, it automatically selects the bone and rotates it) and it's all been working great.
Now my tech artist buddy says I should be using event handlers/callbacks for this....but everthing seems to be working great so far without them.
The question I had though, I've got an object who's rotation is locked out (ie I put a script controller on the objects rotation). Is there a way to have it so when I try to rotate that object (which will not rotate it because it's locked out) it instead changes the value of a custom attributes slider?
I'd like to do this without creating a mouse tool and have it just work automatically on the rig (like the rest of what I'm doing does)
I noticed when I select and rotate the object (that does not rotate) the listener still returns a angleaxis value (rotate $ (angleaxis -21.5 [1,0,0])) but I don't know how I can access that value (is it attach to the mouse?).
Seems like all I would need to do is wire that angleaxis .angle value to the custom attributes slider value?
Can anyone help?
Now my tech artist buddy says I should be using event handlers/callbacks for this....but everthing seems to be working great so far without them.
The question I had though, I've got an object who's rotation is locked out (ie I put a script controller on the objects rotation). Is there a way to have it so when I try to rotate that object (which will not rotate it because it's locked out) it instead changes the value of a custom attributes slider?
I'd like to do this without creating a mouse tool and have it just work automatically on the rig (like the rest of what I'm doing does)
I noticed when I select and rotate the object (that does not rotate) the listener still returns a angleaxis value (rotate $ (angleaxis -21.5 [1,0,0])) but I don't know how I can access that value (is it attach to the mouse?).
Seems like all I would need to do is wire that angleaxis .angle value to the custom attributes slider value?
Can anyone help?
