PDA

View Full Version : easy scritpting question


dragonlair81
04-23-2006, 04:44 AM
okay,

here is my question, how do I write a script that when i run it will check to see if an object is there say a locator and if it is then create something like a cube. I'm not a scripter as you can see just would like to know. thanks

cpan
04-23-2006, 07:35 AM
if (`objExists myLocatorName`)
polyCube;

i'm not in front of maya right now, but i think these are the commands :)

dragonlair81
04-23-2006, 09:38 AM
worked great.

thanks a bunch

CGTalk Moderation
04-23-2006, 09:38 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.