Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --myKnotsArray =#([1.13258,2.30421,0], [2.69108,1.70269,0], [2.28095,-0.101889,0], [0.284975,-0.229485,0], [1.13258,2.30421,0])
- fn ShapeFromArray myInterpolation theShapePositionArray =
- (
- --create the shape object
- newShape = splineshape()
- --add a spline to the shape
- newSpline = addnewSpline newShape
- --add knots from array
- for myKnot in theShapePositionArray do
- (
- addKnot newShape newSpline myInterpolation #curve myKnot
- --#corner, #smooth, #curve
- )
- --update
- updateShape newShape
- )
- --shapeFromArray #corner myKnotsArray
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement