playMaker

Author Topic: How to set all blendshapes to zero?  (Read 872 times)

Silicon Power

  • Full Member
  • ***
  • Posts: 186
How to set all blendshapes to zero?
« on: May 21, 2021, 04:33:27 PM »
Hi. I have more than 70 blend shapes here I need to revert back all these blendshapes to zero but I can't really add 70 actions separately for each index! Is there any action to set multi blend shapes in one action?

wetcircuit

  • Full Member
  • ***
  • Posts: 158
    • wetcircuit.com
Re: How to set all blendshapes to zero?
« Reply #1 on: May 23, 2021, 06:29:24 AM »
a loop that increments through the 70 blend shapes by index should finish in less than a frame.


Silicon Power

  • Full Member
  • ***
  • Posts: 186
Re: How to set all blendshapes to zero?
« Reply #2 on: May 23, 2021, 10:05:13 AM »
a loop that increments through the 70 blend shapes by index should finish in less than a frame.

But it can't be smooth by this method.

wetcircuit

  • Full Member
  • ***
  • Posts: 158
    • wetcircuit.com
Re: How to set all blendshapes to zero?
« Reply #3 on: May 23, 2021, 12:59:57 PM »
You want the blend shapes to 'ease' to zero?

create a float to ease 1 to 0 (probably over a set amount of time, 1 sec)

rather than setting the blend shapes to zero, multiply each blend shape in the loop against this float. When the variable gets to zero, stop the loop.