PDA

View Full Version : Not finding 'retargetingLimbLabel' proc



bendingiscool
02-02-2009, 11:02 AM
Hey, not sure why this is not working, should a be a simple enough procedure to add some retargeting labels to joints..



proc retargetSkels(){

// Joint retargeting labelling
select "*Root_*"; // wildcard
retargetingLimbLabel "Root";

select -r "*LegR_*";
retargetingSideLabel "Right";
retargetingLimbLabel "Leg";

select -r "*LegL_*";
retargetingSideLabel "Left";
retargetingLimbLabel "Leg";

select -r "*Chest_*";
retargetingLimbLabel "Spine";

select -r "*Neck_*";
retargetingLimbLabel "Neck";

select -r "*Head_*";
retargetingLimbLabel "Head";

select -r "*CollarR_*";
retargetingSideLabel "Right";
retargetingLimbLabel "Arm";

select -r "*CollarL_*";
retargetingSideLabel "Left";
retargetingLimbLabel "Arm";
}

But I get this error..

// Error: line 213: Cannot find procedure "retargetingLimbLabel". //

However this command was copied and pasted from the script editor through echo all commands.

Any ideas?

Thanks, Chris

sunder
02-02-2009, 05:53 PM
Hi Chris. You need to make sure the procedure is available.
Type "whatIs retargetingLimbLabel" to determine if the procedure is accessible.
You either need to run a command that sources the file or trigger the Skeleton menu which seems to do it.

bendingiscool
02-02-2009, 06:24 PM
Yay works a treat, can get away with running the window command...

'ChaSkeletonsMenu MayaWindow|mainSkeletonsMenu;'

Which appears to act as sourcing the script.

Cheers