-- Get the object
p = getNodeByName "Box02"
-- Use map channel 1
c = 1
-- Get the number of UVW verts
vert_count = polyop.getNumMapVerts p c
-- Loop through each vert in the object
for v = 1 to vert_count do
-- Get the next vert and print it out
vert = polyop.getMapVert p c v
print vert to:gd
-- Shift the vert by a scalar value in the X axis
vert.x += 10
-- Update the vert in the object
polyop.setMapVert p c v vert
) -- End for
The map vertices all print out fine, so I know everything is working up until that point. The only thing that's not working is the call to setMapVert (). There's no error message in the listener, no exception, nothing. The verts simply don't change. I don't see a visual change in the UVW editor, not do I see a numeric change if I run the script again to print the values a second time.
Is there something I'm missing here? Is it necessary to call some kind of an update function or something?