General Category > Ongoing Anim8or Development
Trackball Rotation in the Sequence Editor
johnar:
--- Quote ---Perhaps an on/off button in the top(?) toolbar
--- End quote ---
Maybe it would fit in the sidebar, next to the 'axis' button?
Steve:
Good idea (and nice glowy colors :) )
daniel99:
Hey, Steve. I've just seen this post, and that script is just amazing and very useful.
But I have a little problem, I hope you can help me:
I have a character, and I've tried to link the tail bones to a target (example: bone09, bone10, bone11). All is well and good, but it only reacts to X coordinates.
When I changed the script like this:
________________________
point3 $angles;
$angles = QuaternionToRPY(GetAttributeQuaternion("tail", "orientation"));
$joint.bone09_X = -$angles.x;
$joint.bone09_Y = -$angles.y;
___________________________
I keep getting this error :
Parse error on line 5
So it seems I can not add the Y coordinates, or I'm not doing it right.
Same problem if I try to change the X to Y coordinate:
$angles = QuaternionToRPY(GetAttributeQuaternion("tail", "orientation"));
$joint.bone09_Y = -$angles.y;
Can u help? Thanks!
Steve:
daniel99: Joint controllers are scalars and each controls only one angle: X, Y or Z. Your script must be for the X joint angle which is why you can't assign the Y component - there is no predefined variable $joint.bone09_X to assign anything to. So you need to write multiple scripts:
1) Double click on the bone09-X joint in the track window to assign the X component to $joint.bone09_X = -angles.x;
2) Double click on the bone09-Y and then bone09-Z and assign them their respective values.
I've attached simple example that does something similar.
daniel99:
Thanks, Steve. Got it! :D
Before you replied, I have just rotated the bones in the figure mode, so the X axis became Y axis. (wich I needed most in my scene)
But I did how you said, and now I have control over X and Y axis.
I had to create a keyframe for bone_Y (it didn't show otherwise), and after I created the script, the keyframe disappeared and now the controller works just fine.
One million thanks for this, man!
Btw, any updated versions for the IK tool?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version