Old 09-07-2014, 11:02 AM   #1
Claudiohbsantos
Human being with feelings
 
Join Date: Aug 2014
Location: New York
Posts: 135
Default Increase/Decrease Take Pan property EEL script

This is probably the most basic script ever posted here, but yesterday I started trying to learn EEL to work on a few scripts after I couldn't find this one here. I use them along with the mousewheel actions to create a custom action to manipulate the pan properties with a modifier + the mousewheel. Thanks to all of you guys who post your scripts here, I am pretty much learning by breaking down your scripts.

Anyway, here they are, in case they help anyone else. And if I managed to do something stupid in such a simple script, please let me know =]

Increase Take Pan property
Code:
item = GetSelectedMediaItem(0,0);
take = GetActiveTake(item);
pan = GetMediaItemTakeInfo_Value(take, "D_PAN");

pan <= 0.95 ?
 (
   pan = pan + 0.05;
 );

pan >= 0.95 ?
 (
   pan = 1;
 );

SetMediaItemTakeInfo_Value(take,"D_PAN",pan);

Decrease Take Pan property
Code:
item = GetSelectedMediaItem(0,0);
take = GetActiveTake(item);
pan = GetMediaItemTakeInfo_Value(take, "D_PAN");

pan >= -0.95 ?
 (
   pan = pan - 0.05;
 );

pan <= -0.95 ?
 (
   pan = -1;
 );

SetMediaItemTakeInfo_Value(take,"D_PAN",pan);
Claudiohbsantos is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting 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

Forum Jump


All times are GMT -7. The time now is 08:11 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.