Hi all,
I am trying to write a script that can go on a model of a person, where when they move, one point cache is loaded, and when they stop, a different point cache is loaded.
Can anyone help, I'm very stuck!!
Mark
P.S. below is the script I am using to change the colour of the sphere, but I need to edit it to effect the point cache.
t0 = f-1
t1 = f
p0 = at time t0 $sphere.pos
p1 = at time t1 $sphere.pos
if p0==p1 then $sphere.material.diffuse = (color 255 0 0)
else $sphere.material.diffuse = (color 0 255 0)
[1, 1, 1]
I am trying to write a script that can go on a model of a person, where when they move, one point cache is loaded, and when they stop, a different point cache is loaded.
Can anyone help, I'm very stuck!!
Mark
P.S. below is the script I am using to change the colour of the sphere, but I need to edit it to effect the point cache.
t0 = f-1
t1 = f
p0 = at time t0 $sphere.pos
p1 = at time t1 $sphere.pos
if p0==p1 then $sphere.material.diffuse = (color 255 0 0)
else $sphere.material.diffuse = (color 0 255 0)
[1, 1, 1]
Comment