Notifications
Clear all
[Closed] vertex animation issue ??
Jul 09, 2006 1:35 am
hello ,
I am just trying to animate vertices with max script. I found very few information in maxscript references. I guess Ihave to use the “animateVertex” command, but I just don’t know how to use it.
I tried something like this :
b = $box
convertToMesh b
animateVertex b #all
animate on
(
at time 0 setVert b 2 [0,0,0]
at time 10 setVert b 2 (random [-50,-50,-50] [0,0,0])
)
but nothing happens…
could somebody help me ?
4 Replies
1 Reply
Here is a possible way to assign the animation values:
b = box()
convertToMesh b
animateVertex b #all
with animate on
(
at time 10 b[4][1][2].value = (random [-50,-50,-50] [0,0,0])
at time 20 b[4][1][3].value = (random [-50,-50,-50] [0,0,0])
)
[4] is the base object
[4][1] is the Master Point Controller
[4][1][2] is the second vertex’ animation track
Jul 09, 2006 1:35 am
thank you very much !! it works perfectly !
another little question though… :
is it possible to assign a script_controller to a vertex ?
1 Reply
Of course! All these vertex tracks under $[4][1][X] have by default a Bezier Point3 controller. Just assign a script controller to one (or all) of them and you are set.
for i = 1 to 8 do
(
b[4][1][i].controller = point3_script()
b[4][1][i].controller.script="random [0,0,0] [1,1,1]"
)