[Closed] Editable Poly Modifier, scripting vertex animation
Hey all,
I am fighting with the vertex animation in the editable poly modifier.
I haven’t been able to find out how to get the modifier to assign a controller to animate a vertex. What i can do is once a vertex is animated (by the user moving it around in animate mode) is to access the controller by:
theMod = $myObj.modifiers[1]
theMpc = theMod[#Master_Point_Controller].controller
theVertexC = theMpc[1283].controller
Which works if vertex 1283 is actually animated. However if, say vertex 33, is not yet animated I get:
theMpc[33] -> SubAnim:Vertex_33 (Good.)
theMpc[33].controller -> undefined (Not unexpected.)
So far so good but when I try:
theMpc[33].controller = bezier_point3() -> – Runtime error: Cannot set controller.
Which is clearly not what I was hoping for…
Basically I am looking for the AnimateVertex function that works on an editable poly modifier.
Any ideas? Thanks,
Rog.
Well… It may be that this is not possible through maxscript. Which may explain the lack of solutions posted here
For anyone who is interested: I solved my problem by modifying (hacking) the edit poly modifier that is part of the SDK samples. I created an almost identical copy (with a different name obviously) which always creates the vertex animation controllers.
Rog.