kickingdolls Posted August 10, 2020 Share Posted August 10, 2020 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 Quote Link to comment Share on other sites More sharing options...
tamagochy Posted August 10, 2020 Share Posted August 10, 2020 Merge all variations and delete in wrangle all except current frame and put it to blend Quote Link to comment Share on other sites More sharing options...
anim Posted August 10, 2020 Share Posted August 10, 2020 Or maybe you can just use Switch Sop with $F in the input parm Quote Link to comment Share on other sites More sharing options...
kickingdolls Posted August 11, 2020 Author Share Posted August 11, 2020 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, Quote Link to comment Share on other sites More sharing options...
tamagochy Posted August 11, 2020 Share Posted August 11, 2020 For exporting to FBX you can use wedge or PDG and switch blend input based on wedge number. Quote Link to comment Share on other sites More sharing options...
kickingdolls Posted August 11, 2020 Author Share Posted August 11, 2020 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.