aslaminanimation
01-24-2011, 02:07 PM
Hi im new to mel scripting, may be it is simple sorry for that. please help me with this...
I have created curve with name Pelvis_Ctrl with attribute Mirror_Pose. If i change the attr Mirror pose, set of commands need to execute. I have used Script job command to do this task. I have used Script node to parent this script to the scene file. If i execute the command it works but the problem is if i close the file and reopen the file the script doedn't work. I again needed to execute this commands. May be i was wrong with "scriptNode" command . Pls help me with this so that i d't run this scipt every time i open the file. Here we go..
scriptNode -st 1 -bs dothis;
global proc dothis()
{
scriptJob -per -cu true -ac "Pelvis_Ctrl.Mirror_Pose" "sel";
}
global proc sel()
{
print "script works";
}
dothis;
Thanks n advance...
I have created curve with name Pelvis_Ctrl with attribute Mirror_Pose. If i change the attr Mirror pose, set of commands need to execute. I have used Script job command to do this task. I have used Script node to parent this script to the scene file. If i execute the command it works but the problem is if i close the file and reopen the file the script doedn't work. I again needed to execute this commands. May be i was wrong with "scriptNode" command . Pls help me with this so that i d't run this scipt every time i open the file. Here we go..
scriptNode -st 1 -bs dothis;
global proc dothis()
{
scriptJob -per -cu true -ac "Pelvis_Ctrl.Mirror_Pose" "sel";
}
global proc sel()
{
print "script works";
}
dothis;
Thanks n advance...
