switch node in solver does not working.

   1321   3   0
User Avatar
Member
8 posts
Joined: Aug. 2017
Offline
Hi.

I'm making a point blend shape now. My plan is to set the switch to 1 for multiples of 15 except for multiples of 30. (ex.1-15,31-45,61-75 …)
The solver includes a VEX that pauses for 0.5(sleep(5)) seconds and a VEX for blending.

However, for example, $F%15 == 0, only this frame is true. Is there a way to solve this problem?

I'm sorry in poor English, but I'm a beginner so
I want to help seriously.

Attachments:
blendshape.hiplc (92.4 KB)

User Avatar
Member
38 posts
Joined: July 2019
Offline
If you want the expression to evaluate to 1 for frames 1-15, 31-45, 61-75, &c. then you should use:
(($F - 1) % 30) < 15
User Avatar
Member
201 posts
Joined: July 2015
Offline
Try this instead:

$F%30 <= 15

That should work.
Manuel Köster - Senior Technical Artist @Remedy Entertainment

https://www.remedygames.com/ [www.remedygames.com]
http://shadesoforange.de/ [shadesoforange.de]
https://twitter.com/ShadesOfOrange_ [twitter.com]
User Avatar
Member
8 posts
Joined: Aug. 2017
Offline
Thanks to them, it works very well.

The output value is clean, so I learned a lot from that
  • Quick Links