Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

how do i reference to a parameter expression in python

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

how do i reference to a parameter expression in python

Postby Vaslav3 » Tue Jun 11, 2019 8:13 am

Hi All,

My question is: How do I reference to the expression field, not the constant field, of an operator parameter in python.

For i like to enter an expression (a string) in the parameters expression field by using python (using a chop execute for example). But i cannot seem to find out how..

Hope someone can help.

All the best
Vaslav3
 
Posts: 6
Joined: Sat Sep 10, 2016 12:00 pm

Re: how do i reference to a parameter expression in python

Postby snaut » Tue Jun 11, 2019 10:11 pm

Hey,

something like this:

Code: Select all
a = op('filter1').par.width.expr
print(a)


Cheers
Markus
User avatar
snaut
Staff
 
Posts: 903
Joined: Mon Nov 12, 2007 6:21 pm
Location: Toronto

Re: how do i reference to a parameter expression in python

Postby Vaslav3 » Wed Jun 12, 2019 6:39 am

Hi Snaut

Yes! that's it! thanks alot :D
Vaslav3
 
Posts: 6
Joined: Sat Sep 10, 2016 12:00 pm


Return to Beginners

Who is online

Users browsing this forum: Google [Bot] and 18 guests