[Closed] ProceedSync
Hi,
can somebody explain how ProceedSync works? There is some information and an example in the manual but it doesn´t really explain what it means.
This is what the manual states:
<bool>[i]proceedSync[/i] <IObject>container <time>timeTick <float>tickFraction <bool>selectedOnly <bitArray>selected
So if I understand this correctly Particle Flow will proceed the particle system of a certain event defined in “container” to a certain time which is expressed in Ticks.
The TickFraction Value is something I don´t understand. What does that mean?
Selected and Bit Array define if all or only a selection of Particles will be influenced.
Now, on question is, if I use ProceedSync in a Script Operator in a similar way as in an example in the manual, will it change anything about the particle behavior? From what I see in tests it doesn´t change anything but since I don´t really understand what ProceedSync does it is difficult for me to determin if it really doesn´t change anything. The script should not change anything about the particle system. I just want to read certain values like position and rotation at the last step in every frame.
Here is the Proceed pCont I´m using in my script:
on Proceed pCont do
(
end = pCont.GetTimeEnd() as float
print end
_int = pCont.GetIntegrator()
count = pCont.NumParticles()
pCont_curr = pCont.GetParticleContainer()
for i in 1 to count do
(
pCont.particleIndex = i
if _int != undefined then
(
a = _int.proceedSync pcont_curr (end/192.0) 0.0 false #{}
--print a
--format "p1.particle%=%
" i (pCont.GetParticlePosition i)
)
)
)