View Full Version : vertex animation issue ??
gag35 07-09-2006, 12: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 ?
|
|
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 ?
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
gag35
07-09-2006, 05:20 AM
thank you very much !! it works perfectly !
another little question though... :
is it possible to assign a script_controller to a vertex ?
thank you very much !! it works perfectly !
another little question though... :
is it possible to assign a script_controller to a vertex ?
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]"
)
gag35
07-10-2006, 08:22 AM
thank you
it's going to make things much easier !
CGTalk Moderation
07-10-2006, 08:22 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.