Beer glass scene creation
This course contains a little bit of everything with modeling, UVing, texturing and dynamics in Maya, as well as compositing multilayered EXR's in Photoshop.
# 1 02-02-2009 , 04:56 PM
bendingiscool's Avatar
Subscriber
Join Date: Jul 2006
Location: London
Posts: 567

Not finding 'retargetingLimbLabel' proc

Hey, not sure why this is not working, should a be a simple enough procedure to add some retargeting labels to joints..


Code:
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

# 2 02-02-2009 , 09:08 PM
BennyK's Avatar
Registered User
Join Date: Oct 2007
Location: IL
Posts: 738
Check the exact circumstances under which it was echoed to the script editor. It's a lot like copying sections of code from the internet and expecting them to work :headbang: .
I can't offer further assistance as I have no idea what it should do user added image .
Benny


When in doubt, delete history and freeze transformations.

My latest snake game
(Requires DirectX9 SDK and Framework)
# 3 02-02-2009 , 09:34 PM
bendingiscool's Avatar
Subscriber
Join Date: Jul 2006
Location: London
Posts: 567
The problem is that, that is the exact text used, well what you do is select a joint and then to transfer animation on to it via retargeting you need to have then skeleton's 'retargeting joints' the same.

As you can see the wildcard selections are just selecting a joint at a time, then the second part is exactly what comes up in the script editor if you have echo all commands on when you manually select a joint and do the command through the Maya UI.

Chris

# 4 03-02-2009 , 12:14 AM
bendingiscool's Avatar
Subscriber
Join Date: Jul 2006
Location: London
Posts: 567
Turns out I have to run 'source ChaSkeletonsMenu' before running other pieces of code that use the retargeting stuff.

Chris

EDIT: Yay can get away with running the window command...

'ChaSkeletonsMenu MayaWindow|mainSkeletonsMenu;'

Which appears to act as sourcing the script.

Cheers


Last edited by bendingiscool; 03-02-2009 at 12:21 AM.
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads