FORUMS: list search recent posts

HELP: FreezeTransformations is moving my geometry?

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Nick vandiem
HELP: FreezeTransformations is moving my geometry?
on Nov 15, 2009 at 2:24:23 pm

Hi all,

I am wondering what the difference is between running FreezeTransformations by itself in the script editor as opposed to in a script.


select -r Head_CTRL;
FreezeTransformations;


If I run the above by itself in the script editor it works perfectly. It will as expected zero out my transform attributes which is what I want. However if I run it within my script it moves my geo to grid origin and leaves the pivot point snapped to my joint. Not what I want!

Below is a small snippet which is attached to a button in a gui. All I want to do is create a curve, snap it to my joint and delete the constraint, and finally freeze the transforms.


proc BipedHeadSetup()
{
// Create FK Controller
curve -n "Head_CTRL" -d 3 -p 0 .1 -1.4 -p 1.488862 .2 0 -p 0 0 1.3 -p 1.488862 -.1 0 -p 0 -.1 -1.4 -p -1.488862 -.1 0 -p 0 0 1.3 -p -1.488862 .2 0 -k 0 -k 0 -k 0 -k 1 -k 2 -k 3 -k 4 -k 5 -k 5 -k 5;
closeCurve -ch 1 -ps 0 -rpo 1 -bb 0.5 -bki 0 -p 0.1;

delete `parentConstraint-skipRotate x -skipRotate y -skipRotate z "spineG" "Head_CTRL"`;

select -r Head_CTRL;
FreezeTransformations;
}


I turned on Echo all commands and found Maya loads in performFreezeTransformations.mel but this still doesn’t tell me why it is moving the geo instead of freezing my attributes.

Any help in why Maya executes the FreezeTransformations command differently in a script as opposed to by itself would be greatly appreciated.

Thanks,
Nick.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]