Advertisement
Lucas_3D

Untitled

Dec 26th, 2021
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. --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])
  2. fn ShapeFromArray myInterpolation theShapePositionArray =
  3. (
  4. --create the shape object
  5. newShape = splineshape()
  6. --add a spline to the shape
  7. newSpline = addnewSpline newShape
  8. --add knots from array
  9. for myKnot in theShapePositionArray do
  10. (
  11. addKnot newShape newSpline myInterpolation #curve myKnot
  12. --#corner, #smooth, #curve
  13. )
  14. --update
  15. updateShape newShape
  16. )
  17. --shapeFromArray #corner myKnotsArray
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement