Advanced LUA Scripting
:
:
Tell resolve “This is no longer an expression, this is a piece of LUA code”
Composition Settings
time
time
Returns the current time (as a frame count)
comp.RenderStart
comp.RenderStart
Get the first frame value
comp.RenderEnd
comp.RenderEnd
Gets the last frame value
comp:GetPrefs(”Comp.FrameFormat.Width)
comp:GetPrefs(”Comp.FrameFormat.Width)
returns the composition width (in pixels)
comp:GetPrefs("Comp.FrameFormat.Rate")
comp:GetPrefs("Comp.FrameFormat.Rate")
Returns the frame rate of composition
Text
Text1.StyledText.Value
Text1.StyledText.Value
Returns your text as plain text, which is easier to pass to other text nodes.
..
..
Allows combining multiple values. I.e. “How many frames ” .. “time” will return How many frames 10
string.len(Text1.StyledText.Value)
string.len(Text1.StyledText.Value)
returns the character count