SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Mel Scripts & Programming / pasting clips automatically
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 20-11-2008, 10:52 PM   #1
bendingiscool
Subscriber
 
bendingiscool's Avatar
 
Join Date: Jul 2006
Location: London
Posts: 567
Thanks: 0
Thanked 1 Time in 1 Post
Default pasting clips automatically

Hey, I am after trying to automate putting various animation clips into a pre-made character set depending on certain conditions. For instance say I had a sphere, moving along, then, if it moved past a certain piont on the grid, etc, it would chuck in an animation clip of it bouncing, etc.

I'm guessing it would have to be an expression that would switch between clips, depending on various conditions, and it would be like automatically pasting them into the trax editor.

Any ideas on this one as it could be a useful piece of code, or concept ot get the hang of.

Many thanks

Chris
bendingiscool is offline   Reply With Quote
Old 21-11-2008, 02:30 PM   #2
bendingiscool
Subscriber
 
bendingiscool's Avatar
 
Join Date: Jul 2006
Location: London
Posts: 567
Thanks: 0
Thanked 1 Time in 1 Post
Default

ok so far I have a simple switch statement to make some objects, later the objects will be replaced with the animation clips...

/////////////////////////////
proc objMaker(int $val) {

switch($val) {
case 1:
polySphere; //be replaced by a certain clip
break;

case 2:
polyCone; //be replaced by a certain clip
break;

case 3:
polyCube; //be replaced by a certain clip
break;
}
}

objMaker(1)
/////////////////////

What I want to do is work out, for instance, if it goes past a certain point on the grid, or reaches a certain frame, etc, then apply an animation clip, or in the mean time do whatever command I have in the different cases.

Many thanks

Chris
bendingiscool is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.