![]() |
|
global variables not acceseble when sim again...? - Printable Version +- Sitni Sati Forums (https://forum.afterworks.com) +-- Forum: Products (https://forum.afterworks.com/forumdisplay.php?fid=4) +--- Forum: FumeFX [max] (https://forum.afterworks.com/forumdisplay.php?fid=8) +--- Thread: global variables not acceseble when sim again...? (/showthread.php?tid=615) |
global variables not acceseble when sim again...? - Capitanred - 05-30-2008 Hi I'm trying to learn some fume sim scripting. I've tried this: Code: -- GLOBAL VARIABLESbut 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? Re: global variables not acceseble when sim again...? - Capitanred - 05-30-2008 strange things happening here :lol: I have to find out what's going on... Just one thing I would like to whish for future before i forget is that the script is saveable seperatly, and does not save with the file automatically. I did some testings, updated the script till it worked, saved it and then closed the file and clicked do not save changes. and the script has been rewritten to the previous state :? Re: global variables not acceseble when sim again...? - Capitanred - 06-26-2008 Is there a way to get voxel data from outside the fumeFx script window? some kind of "$FumeFx01.getSmokeWorld [50,100,20] $FumeFx01.transform" ? Re: global variables not acceseble when sim again...? - vjeko - 07-10-2008 Hi, try to run this in PostStep, that will fill it with actual data for that frame. You can also run this in PostLoad. Anytime a frame is loaded (slider change, render...). After you have run the simulation you can make a preview or render, so all frames get loaded and your code can be executed on all frames. I'm not sure why pointArr should not remain available since it's global and should remain visible for the entire max session. Vjeko |