Analytics Filter

Main purpose of Analytics Filter is to execute arbitrary LUA script and show its result.

Custom: Execute LUA script.
Center: Return average of particle position.
Weighted Center: Return average of particle position, weighted by Value1.

Custom Script

You can get 6 variables at maximum as return value of LUA script.
For example, to obtain averaged x,y,z the script would be as follows.


See page for expression for more details.

Call result of analytics in other scripts

You can obtain the result of Analytics Filter from other LUA scripts.
For example, setting following scripts to the objects position, you can set object to the to the center of particles.

x,y,z = C.GetFilterInfo("analytics")
return x,y,z

return
inserted by FC2 system