[Closed] saving objects position an calling it back?
hi
I’m very new to scripting and hope you guys can help me
in my scene, particles controle the motion of some objects. when I move the timeslider backwards, the objects do not go where they have been.
and if I click on undo, they also do not go to their position.
I have saved the vector as string ov every object in the first frame.
can I now call this positions when I am on frame 0?? and if yes, how?
and would this also be possible with the rotation?
eemm, is my question to easy or what??
ok, I didn’t give it up, and found out, what i actually have to do, but I just can’t find out with the help file, how this exactly works.
the script is this at the moment:
on ChannelsUsed pCont do
(
pCont.useVector = true
pCont.useOrientation = true
pCont.usePosition = true
)
on Init pCont do
(
)
on Proceed pCont do
(
count = pCont.NumParticles()
for i in 1 to count do
(
pCont.particleIndex = i
pCont.ParticleVector= pCont.ParticlePosition
if currenttime == 1 then print pCont.ParticlePosition as string
if currenttime == 1 then ............................................................
)
)
on Release pCont do
(
)
so,i think,that i need, there where the red dots are, an Array which saves the particles Orientation.
then I can go to a next event and add a go_to_rotaton script, which refers to the OrientationArray.
My question is now, how to create this OrientationArray, which saves each particles orientation