Use Python to set Unit Type

Couldn’t find this information in the wiki or forums, so posting here.

Is there a way to change a parameter’s unit type (e.g. frames, seconds, etc for Delay CHOP) with python?

I think this will work:

op( 'constant1' ).par.startunit op( 'constant1' ).par.endunit

My technique for tracking these down when I’m not sure what they are called / referenced as is to use a parameter execute DAT and print our the parameter name on any value change. That’s usually pretty consistent for tracking down what’s going on under the hood.

oops!

For a delay CHOP it’s:

op( 'delay1' ).par.delayunit

Thank you!

Love your tutorials by the way.