Hi:
How can I get control to any expression, in order to apply it in a layer or a group of layers, just in the time I decide, so I can switch on or off at taste, or maybe play with the expression parameters at different times.
Thanks
Applying an expression just at exact layer time
Here is how to set the source text of a text layer based upon the frame #.
If you want to apply something to a group of layers you may be able to apply the expression to an adjustment layer. Depends on what you want to do.
Code: Select all
thisFrame=timeToFrames(t=time+thisComp.displayStartTime,fps=1.0/thisComp.frameDuration,isDuration=false);
if (thisFrame==0){text.sourceText = 'Hello World';}
"Up And Atom
No...No
Up And At Them!"
No...No
Up And At Them!"
The easiest way to do this would be to use the Expression Controls (check the effects menu).
Depending on the type of data you expression is creating, or reading, you can easily controls its effects via keyframes.
Alex
Depending on the type of data you expression is creating, or reading, you can easily controls its effects via keyframes.
Alex
All you ave to do is add an else to the if statement.
Code: Select all
thisFrame=timeToFrames(t=time+thisComp.displayStartTime,fps=1.0/thisComp.frameDuration,isDuration=false);
if (thisFrame==10)
{
text.sourceText = 'This is frame #10 text.';
}
else
{
text.sourceText = "This is the default text."
}
"Up And Atom
No...No
Up And At Them!"
No...No
Up And At Them!"