Notifications
Clear all

[Closed] Adding controllers to spline vertices in Max 2019

Hi! Max 2019 seem to have changed the way you assign controllers to animate spline vertices, and I can’t get my script to work at all now. Has anyone solved this?

tShape = SplineShape pos:[0,0,0] name:“Test_spline”
addNewSpline tShape
addKnot tShape 1 #corner #line [0,0,0]
addKnot tShape 1 #corner #line [10,10,10]
updateShape tShape

startCon = Point3_XYZ()
endCon = Point3_XYZ()

animateVertex tShape #all

tShape.Master.controller.Spline_1___Vertex_1.controller = startCon
tShape.Master.controller.Spline_1___Vertex_2.controller = endCon

This will give me a

– Unknown property: “Master” in $Test_spline

But I swear it worked in an earlier version of 2019…

2 Replies
$.baseobject[#master]

that’s what i always used to get access to MasterPointController

Fantastic, that did the trick! Thanks @denisT !