The first 4 lines to vector origin work and create the 3 controls, but when I add the rest, Houdini does nothing and seems to be frozen. If I type the code in the expression window and click Apply, it does the same thing, just hangs.
Am I doing something wrong? Or is this just a bug?
Nvidia GTX980 (driver: 346.03.15f09)
Mac Pro (Early 2009) — 4,1
2 x 2.26 GHz Quad-Core Intel Xeon
32GB RAM
macOS 10.11.6 (El Capitan)
//user controls int sample = chi('sample'); float radius = ch('radius'); vector origin = chv('origin_position'); float TWO_PI = 3.14159 * 2; float theta = 0; float step_angle = TWO_PI / (float)sample; float x, z; vector pos; while(theta < TWO_PI) { x = origin.x + cos(theta) * radius; z = origin.z + sin(theta) * radius; pos = set(x, origin.y, z); addpoint(0, pos); theta += step_angle; }