Hi all,
my purpose is a python SOP node with a ramp that controls positions of points and assign them keys' values.
The code I wrote is this:
# This code is called when instances of this SOP cook.
geo = hou.pwd().geometry()
radiusAttrib = geo.addAttrib(hou.attribType.Point, "radius", 0.0)
x1 = 0.0
y1 = 0.0
z1 = 0.0
ramp = hou.Node.evalParm(hou.pwd(), "ramp")
keys = ramp.keys()
values = ramp.values()
i = 0
# Add code to modify the contents of geo.
for pt in geo.points():
newpos = (x