Jump to content
Sign in to follow this  
kickingdolls

Find parameter value from list to use in expression

Recommended Posts

Hi all,

I'm trying to build a setup that allows me to input an unknown number of blends into a blend shape SOP and will cycle through each blend state one by one based on the current frame number.

So I was imaginging it would go something like this:

if($F == *myCurrentInputNumber*, 1, 0);

I've achieved this by doing it manually by cutting and pasting my expression and incrementing the value by 1 for each input, but I'd like to have a setup that does for me based on how many inputs I have connected to my blend shapes.

Any ideas about how to referecne numerical value of each shape in an expression?

Thanks in advance

blend_setup.JPG

Share this post


Link to post
Share on other sites

Merge all variations and delete in wrangle all except current frame and put it to blend

Share this post


Link to post
Share on other sites

Or maybe you can just use Switch Sop with $F in the input parm

Share this post


Link to post
Share on other sites

Hey guys,

Thanks for the reply's - the issue is that I need this to run through a blend shapes so that each state is recorded as a morph target when exported to FBX, I don't think there other options will achieve this.

So both your solutions are great options, but won't achieve the results I need for this workflow.

Thanks again,

 

Share this post


Link to post
Share on other sites

For exporting to FBX you can use wedge or PDG and switch blend input based on wedge number. 

Share this post


Link to post
Share on other sites
2 hours ago, tamagochy said:

For exporting to FBX you can use wedge or PDG and switch blend input based on wedge number. 

Hey - okay awesome, I'm not too sure what wedge or PDG are...  Can you elaborate, thanks very much for your help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×