
- Posts: 166
- Joined: Wed Aug 12, 2015 11:08 am
Now that Beta5 lets Fusion use clips by it's native resolution, I wonder if I can get the current timeline frame size in an expression.
For instance, when I apply Fusion fx to a picture that is 320x240 and create a new Background generator, that generator has the same size as the picture. I can manually change this to HD by manually inputting 1920 and 1080, but I would like to create templates that do not have a fixed output resolution, but take the resolution of timeline.
An example use case: You want to create a reusable template that can be applied to low-res youtube clips. The fusion template will scale it relative to the timeline frame size but add a little margin, put a border around it, and a background pattern.
Does anybody know how to get the timeline frame size, or if it's even possible now that the behavior has changed?
UPDATE:
I was digging around, and it would seem logic to me, that the composition frame format is set to the timeline format. Then we can call it like this:
As you can see above, it currently returns the width of the image.
For instance, when I apply Fusion fx to a picture that is 320x240 and create a new Background generator, that generator has the same size as the picture. I can manually change this to HD by manually inputting 1920 and 1080, but I would like to create templates that do not have a fixed output resolution, but take the resolution of timeline.
An example use case: You want to create a reusable template that can be applied to low-res youtube clips. The fusion template will scale it relative to the timeline frame size but add a little margin, put a border around it, and a background pattern.
Does anybody know how to get the timeline frame size, or if it's even possible now that the behavior has changed?
UPDATE:
I was digging around, and it would seem logic to me, that the composition frame format is set to the timeline format. Then we can call it like this:
- Code: Select all
Lua> dump(comp:GetPrefs("Comp.FrameFormat.Width"))
160
Lua> dump(comp:GetPrefs("Comp.FrameFormat.Rate"))
60
As you can see above, it currently returns the width of the image.
macOS 10.13.2 High Sierra
Core i9 7920X, 32GB RAM
GTX 1080 Ti 11GB
Blackmagic DeckLink Mini Monitor 4K
Blackmagic URSA Mini Pro
Blackmagic Pocket Cinema Camera
Blackmagic DaVinci Resolve Studio 15
Core i9 7920X, 32GB RAM
GTX 1080 Ti 11GB
Blackmagic DeckLink Mini Monitor 4K
Blackmagic URSA Mini Pro
Blackmagic Pocket Cinema Camera
Blackmagic DaVinci Resolve Studio 15