ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
I am a beginner.
I am not able to construct a "NURBS Point Curve" with MAXSCRIPT.
I need it for build an "Electric Cable" between two points with a little noise
to modify the straight line.
Read "How do I create a line between two points?" topic in the MaxScript Reference.
-- Example from the help
fn drawLineBetweenTwoPoints pointA pointB =
(
ss = SplineShape pos:pointA
addNewSpline ss
addKnot ss 1 #corner #line PointA
addKnot ss 1 #corner #line PointB
updateShape ss
ss
)
newSpline = drawLineBetweenTwoPoints [10,20,30][100,200,10]-- convert the SplineShape to NURBSCurveshape
convertTo newSpline NURBSCurveshape
Comments
Example in the mxs help
Read "How do I create a line between two points?" topic in the MaxScript Reference.
my recent MAXScripts RSS (archive here)