• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
global variables not acceseble when sim again...?
#1
Hi

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?
  Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)