05-30-2008, 11:24 AM
Hi
I'm trying to learn some fume sim scripting. I've tried this:
but when I run the sim again, the global pointArr isn't there anymore. Is there a way to make the array accessible in all simulations of this FFX?
I'm trying to learn some fume sim scripting. I've tried this:
Code:
-- GLOBAL VARIABLES
------------------
-- declare here...
-- FUNCTIONS
------------
-- before first step has started, but after snapshots have been loaded etc...
fn PreSim = (
print pointArr
print "pointArr should be printed above!"
if pointArr != undefined then(
for i in pointArr do(
delete i
)
)
global pointArr = #()
for i in 0 to (voxels-1) do(
myPoint = point pos:(ffxIndexToWorld i) Box:on cross:off size:2 constantscreensize:on
append pointArr myPoint
--addModifier myPoint (Voxel_Data())
)
ffxHoldWindowOnce()
print pointArr
print "STOP-----------------\n---------------------"
)but when I run the sim again, the global pointArr isn't there anymore. Is there a way to make the array accessible in all simulations of this FFX?

