Page 1 of 1

Select Parameter by style

PostPosted: Fri Jul 05, 2019 1:54 am
by jordaneast1
Just wondering how I can select a parameter by style in the Parameter CHOP, in particular all pulse parameters

I've tried me.isPulse() or par.isPulse() in the parameters field but not sure where to go from here.

Thanks

Re: Select Parameter by style

PostPosted: Wed Jul 10, 2019 3:55 pm
by rob
You'll need to set the parameters field to an expression:

Code: Select all
[(x.name if x.isPulse else "") for x in op('geo1').pars('*')]



(Assuming operator geo1 for example).

That can be generalized further to:

Code: Select all
[(x.name if x.isPulse else "") for x in op(me.par.op).pars('*')]

Re: Select Parameter by style

PostPosted: Thu Jul 11, 2019 11:04 pm
by jordaneast1
Awesome works great :)

Thanks rob