Deborah R. Fowler

Wrangle Nodes Compared with VOPs

Posted Jan 19, 2019 Updated Jan 19, 2019

If you are not familiar with VEX and point wrangles please read Wrangle Node Example VEX Basics.

VEX snippets are similar to C++ code (take VSFX 375), however there is also a pictorial version of VEX called VOPs. For those of you coming from an Unreal background, it looks similar to Blueprint.

Phyllotactic Example

To compare we will look at the phyllotactic example in VOPs.

The phyllotactic pattern is based on setting points in a planar pattern according to two equations, expressed in Cartesian coordinates:

x = cval * sqrt(n) * cos(angle * n);
y = cval * sqrt(n) * sin(angle * n);

Where angle is the golden angle. Note that both VEX and VOPs require the angle to be in radians, not degrees. Click here for more information about the phyllotactic pattern.

Comparing the versions we created in VEX, below is a version in VOPs. Remember that VEX/VOPs implicitly loop through all points.

Phyllotactic pattern — VOPs implicit loop

For completeness, I have included below a version that uses an explicit loop (details-only version of VOPs, similar to VEX). I love wrangle nodes and VEX and would probably not use the version below personally, but have included it as Houdini allows users to create solutions that make the most sense to them.

Phyllotactic pattern — VOPs explicit loop