For a bit of fun/practice I’m trying to make some kind of AfterEffects-like compositing/animation .tox with layers and animations and movie-files and all sorts of fun stuff
I’m using Sequencer parameters to dynamically produce layers, and so far it’s actually working pretty well!
I’m basically trying to link each parameter up to an Animation comp, but I’m running into an issue with programmatically exporting the animation chop to the correct parameter.
but there’s no method to set the export op, and the two par members ‘exportOp’ and ‘exportChannel’ are read-only (I’m sure there is a good reason for this under the hood)
Is there a proper way of doing this?
Ideally it would be something akin to right clicking the parameter and clicking ‘Keyframe Parameter In…’ but in python
Can you achieve this with an expression instead of an export? I feel like a clever default expression should work. When you hover over the parameter in expression mode as long as it says “(Optimized)” at the end, it will be as fast as an export.
Post your network here if you have trouble coming up with an expression.
@Achim, thank you, this is what I was missing!! I can edit the export table within the animation comp.
Actually, this redefines the problem (or maybe I misunderstood the problem in the first place )
Now, I need to be able to programmatically add new channels to an Animation comp. there is a ‘setKeyframe()’ method but seemingly no way to add a new channel… does anyone know how I might do that in python?
But this is working well already as I can set ‘default’ channels and use renameCHOP to align them to sequence index
Not in front of TD, but afaik the channels are defined in a DAT inside the animation COMP. Just add a row there via python. If you name that channel like the par name you want to export to, you don’t even need to edit the export table (if you switch to export by channel name)