Point_Wrangle Vex_Snippets

   3575   4   1
User Avatar
Member
6 posts
Joined: 3月 2012
Offline
hi everyone,
i just want to ask if there is a “vex-snippets”-libary or something like that?
and one specific question about a vex-function like “pscale, driven
by velocity”

seems that this first approach one is BS:

@pscale += (@v, float, float,);

damn…this vex-snippet-stuff is really tough.. (for me )
thanks a lot in advance !
Oli
User Avatar
Member
443 posts
Joined: 9月 2012
Offline
seems that this first approach one is BS:

@pscale += (@v, float, float,);

pscale is float. So it should be written as:

@pscale += length(@v);
User Avatar
Member
443 posts
Joined: 9月 2012
Offline
For more variation you can randomize it using rand() and then fit01() to fit in certain range.

@pscale += fit01(rand(length(@v)), 0, 0.2);
User Avatar
Member
443 posts
Joined: 9月 2012
Offline
Here are some useful wrangle presets:

https://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=35541 [sidefx.com]
User Avatar
Member
6 posts
Joined: 3月 2012
Offline
thank you!
  • Quick Links