PDA

View Full Version : Can it be done?


dsepshn
10-06-2003, 04:23 AM
I'm pretty new to scripting, but I was wondering if it were possible to have a Mel script triggered by selecting an object?

zachgrachan
10-06-2003, 07:06 AM
I believe it's called a scriptJob. I haven't used it before, but you can probably find info on it in the Docs, or here somewhere on cgtalk...

mhovland
10-06-2003, 02:51 PM
Zach is correct.

Look into the scriptJob. It will exeute a series of mel commands or a script, based on any number of events or actions in the Maya scene. The docs give a decent example of how to set one up, the tricky part is to remove the job when you don't need it.

john_homer
10-06-2003, 08:41 PM
scriptjobs are quite unrealiable... sometimes they just dont excute...

but they are wat you need to do that.
.j

dsepshn
10-07-2003, 05:18 AM
I will defiantly look into that...would any of you recommend a good book? I would want something on an intermediate to advanced level. I figure I can get the basics threw the internet and the help files...
Thanx
Wes

zachgrachan
10-07-2003, 06:46 AM
for general MEL I would recommend MEL Scripting for Maya Animators, by Mark Wilkins. For the C++ API stuff, check out Complete Maya Programming, by David Gould. Personally I got more out of MEL Scripting, but it does lack info on the API.

CGTalk Moderation
01-16-2006, 06:00 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.