Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

 
berTron
Topic Author
Posts: 6
Joined: Thu Oct 18, 2007 12:58 pm
Contact:

triggering Time Remap with markers

Tue Jan 08, 2008 10:02 am

I'm trying to be able to control when a pre-comp starts playing with a layer marker, but so far I can only get it to go to the start frame and then immediately go back to the default.

How can i get it so a marker "hits play" for a layer and then the layer's time just keeps going?
 
Paul Tuersley
Posts: 704
Joined: Sat Jun 05, 2004 7:59 am
Location: London, UK

Tue Jan 08, 2008 10:42 am

This expression (applied to the time remap property) will make the time remap value start to increase from the layer's first marker:
firstMarkTime = thisLayer.marker.key(1).time;
if (time >= firstMarkTime) {
   time - firstMarkTime;
} else {
0;
}
 
berTron
Topic Author
Posts: 6
Joined: Thu Oct 18, 2007 12:58 pm
Contact:

Tue Jan 08, 2008 11:09 am

Thanks, I was able to figure it out once I thought backwards about it.

boobies = marker.key(1).time;
temp_Remap = time;
if (time < marker.key(1).time)
{temp_Remap = 0};
else
{temp_Remap = time-boobies};
temp_Remap

like my variable name?

Who is online

Users browsing this forum: No registered users and 1 guest