MOSS
10-16-2008, 10:03 PM
I'm trying to create a script that would create helpers at each cv of a nurbs surface.
nSet = getNURBSSet $
for i in 1 to nset[1].numCVs.y do
(
for k in 1 to nset[1].numCVs.x do
(
newPoint = point size:20 cross:false box:true wirecolor:blue
newPoint.pos = (getCV nSet[1] i k).pos
)
)
This seems to work for surfaces that don't have closed rows or columns, but as soon as I close the rows, I get this error -
-- Runtime error: NURBSSet object index out of bounds: 1
In the help, it says CV indexes are 1-based. What does that mean? Is there another way to get the CV position?
nSet = getNURBSSet $
for i in 1 to nset[1].numCVs.y do
(
for k in 1 to nset[1].numCVs.x do
(
newPoint = point size:20 cross:false box:true wirecolor:blue
newPoint.pos = (getCV nSet[1] i k).pos
)
)
This seems to work for surfaces that don't have closed rows or columns, but as soon as I close the rows, I get this error -
-- Runtime error: NURBSSet object index out of bounds: 1
In the help, it says CV indexes are 1-based. What does that mean? Is there another way to get the CV position?
