python : how to switch from constant to expression?[Solved]

Hello,

I am looking for a python’ script to switch a parameter mod between CONSANT and EXPRESSION for a SWITCH TOP.
Is this possible?

The project’s idea : connect a smartphone witch touchOSC that can switch the SWITCH TOP value manually instead of an automatic expression (picture).

Thanks :wink:
switch.jpg

You can do this with .expr a member of the Par Class:
[url]http://www.derivative.ca/wiki088/index.php?title=Par_Class[/url]

It’s important to remember that you’ll need to set your expression as a string.

Here’s an example:
ParClass -dotExpr.toe (5.06 KB)

2 Likes

Thank you raganmd, that is what I was looking for !

:wink: