Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Select Parameter by style

Still a little green? Ask your beginner's questions here

Select Parameter by style

Postby jordaneast1 » Fri Jul 05, 2019 1:54 am

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
jordaneast1
 
Posts: 8
Joined: Fri Aug 03, 2018 1:44 am

Re: Select Parameter by style

Postby rob » Wed Jul 10, 2019 3:55 pm

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('*')]
User avatar
rob
Staff
 
Posts: 1671
Joined: Tue Nov 13, 2007 1:14 am

Re: Select Parameter by style

Postby jordaneast1 » Thu Jul 11, 2019 11:04 pm

Awesome works great :)

Thanks rob
jordaneast1
 
Posts: 8
Joined: Fri Aug 03, 2018 1:44 am


Return to Beginners

Who is online

Users browsing this forum: No registered users and 14 guests