- Posts: 611
- Joined: Sat Nov 19, 2016 6:21 am
- Code: Select all
c = composition
attrs = c:GetAttrs()
now = attrs.COMPN_CurrentTime
c:SetAttrs({ COMPN_GlobalEnd = now})
I couldn't get a hotkey assigned to Fusion to run the script, but I could do it for the Flow View. Save this code in a file with the extension .lua in your Scripts > Comp folder. The four attributes you want are:
COMPN_GlobalStart
COMPN_GlobalEnd
COMPN_RenderStart
COMPN_RenderEnd
Each attribute should be controlled with a discrete script, so you'll have four .lua files when you're done.
Oh, and the Ctrl and Shift+[] simply move the playhead to the beginning or end of the global or render range, much as Alt+[] moves to the next or previous keyframe.
Now that you've got me thinking about this, it might be nice to set up some similar scripts to set the Global and Trim ranges for Loaders with hotkeys, as can be done in After Effects. That's one feature that I miss from AE, but it never occurred to me to import it to Fusion.