Using wnoise in VEX

   1140   1   0
User Avatar
Member
46 posts
Joined: March 2016
Offline
I'm trying to use wnoise (worly noise) in an attribute wrangle node, but I can't figure out how to structure it. It works much differently from other noise functions, and the documentation [www.sidefx.com] on it is fairly bare-bones with no example given of actual use.
My searching online found no examples of it being used either. All I want to do is retrieve the vector it generates for position.
I was using it in a pointVOP node, and wanted to convert it to VEX to be more efficient.
User Avatar
Member
7762 posts
Joined: Sept. 2011
Offline
VEX is not inherently more efficient than VOPs. VOPs is VEX. There is no reason to use vex code over vops, other than preferring to write code than to place nodes. It may be more efficient for some users, if they can write code faster than they can place nodes, if that's what you mean.

If you are curious how to use wnoise in VEX code, you can see how the corresponding VOP node uses the function internally by right clicking on the node and opening type properties. There on the code tab is the function in use.

Note that the wnoise function does not give positions at all, only distances.
  • Quick Links