Python parm expression adding another param

   1798   1   1
User Avatar
Member
4 posts
Joined: 8月 2015
オフライン
I am using the following to set one of my parameters:

kwargs['node'].parm('pz').setExpression("bbox(0,D_ZMIN)")

I have another parameter for offset, I thought I could just add it to the expression but its not working, like so:

kwargs['node'].parm('pz').setExpression("bbox(0,D_ZMIN)+ ch("pivotOffset")")

not sure how to fix this.

thanks.
User Avatar
Member
4 posts
Joined: 8月 2015
オフライン
I was doing to much using “”, had to use ''

this works:
kwargs['node'].parm('pz').setExpression('bbox(0,D_ZMAX)+ch("pivotOffset")')
  • Quick Links