Switch between reference and typed in number

Hi, I’m building a keyframer for a camera COMP, and want to go between the expressions applied to my translation, rotate, and pivot to there being no reference without clicking on each reference. Is there a python script to do this?

Between this

And this

Hi @aaronmylespereira,

the Par Class has a .mode member which can be used to switch the parameter mode programmatically.

For example the translate’s tx and ty parameters can be switched like this:

# switch tx parameter to expression mode
op('geo1').par.tx.mode = ParMode.EXPRESSION

# switch ty parameter to constant mode
op('geo1').par.ty.mode = ParMode.CONSTANT

Hope this helps
cheers
Markus

1 Like

Bless your soul, thank you so much!