Expression Help! Getting the parameter index number...

   1135   2   0
User Avatar
Member
9 posts
Joined: Jan. 2018
Online
Hi there,

I'm hoping someone might be able to help me with an expression issue I'm having.

I want to use the numberical index value from a list of paramters inputs in an expression. Specifically on the blendshapes node, so that it will turn each blend shape on one by one on each frame.

I was hoping there would be something similar to the opdigits command, but I can't seem to find one anywhere.

I am hoping I could write an expression along the lines of if($F == *parameterIndex*, 1, 0) - but I can't find a good way to call the paramter index… Is this possible?

Thanks very much,

Attachments:
expression_question.jpg (54.1 KB)

User Avatar
Member
731 posts
Joined: Dec. 2006
Offline
First parm1: $F==1
Second parm2: chf(“parm1”,$F+1)
Second parm2: chf(“parm1”,$F+2)
etc
Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
User Avatar
Member
9 posts
Joined: Jan. 2018
Online
mrCatfish
First parm1: $F==1
Second parm2: chf(“parm1”,$F+1)
Second parm2: chf(“parm1”,$F+2)
etc

Hi Sean,

Thanks for the reply, can you think of a way to avoid having to manually increase the value that follows $F? For what I am doing I will likely need to copy the expression into many paramter channels, so was hoping to find a way to call the paramter index within the expression to avoid having to increment the value myself.
  • Quick Links