Fume FX & Max Script


#1

Hello everybody,

i have a problem with FumeFX and MAX Script. I’m searching for a solution to Simulate and Render after each frame (or a frame interval). Do you have any ideas to automate this process?

Simulate 1 Frame -> Render 1 Frame -> Simulate 1 Frame -> Render 1 Frame…

Thank you very much for help
Vali


#2

Can you not do a script to sim the whole time range then render it all out, sim all then render all??

Allan Mckay had a script knocking around that did this.

HTH

Chris


#3

I used to have something kicking around that did that, it was ages ago, i’ll see if I can find it, no promises though, my machine has a new os since then.


#4

here you go, link to allans script on scriptspot.

http://www.allanmckay.com/site/scripts/AMcKay_FFX-QuickSimRender.ms

or im assuming the same script directly from his site.

http://www.vfxsolution.com/site/scripts/AMcKay_create_animVolume_v06.ms


#5

he’s looking for something else than allans script.

check out the fumeFX help file. it’s really easy, just exectue the function to sim next frame. then move timeslider to that frame, then render…etc.


#6

Yes I’m searching for a script, which simulate each frame and render after that. But theres no command in fumeFX for sim “next frame”. There is only the RunSimulation() command which run from Start to End. Is this an undocumentated command?

Thanks a lot
Vali


#7
I'm not sure why would you like to do this, but... select your fume and run this line in script lisener
for i = 1 to 10 do ($.startFrame = i;$.endFrame = i;$.runsimulation();render frame:i outputfile:rendOutputFilename progressbar:true quiet:false )

this method does NOT work like you think it should. Fume is simulating one frame and then render it, then it simulate the next frame and render it… and so on
BUT! this sim is wrong! you need to simulate frame range to get an proper simulation.

If you look at fume and how it works and try to do what you want step by step using Fume UI
– if you click “Start Simulation” Fume runs the sim. range ( 1 to 100 by default )
– you can stop the sim and continue with the “continue simulation” button (not accessible via maxscript! )
– if you press “calculate one frame of the simulation” Fume is simulating one frame and goes one step forward in the timeline, press it again and it simulates the next one, this could work but there is no access via maxscript at the moment

anyone better ideas??

cheers,
Bandu

#8

The issue is that AFAIK you cannot continue the sim via maxscript.

I found the script I was thinking of (and remembered why I never posted or used it beyond testing) and it will indeed render every frame at every simstep BUT what it does:

sim frame 0/render frame 0
sim frame 0 & 1/render frame 1
sim frame 0,1,2/render frame 2
ect., ect., ect.

So it increments through but needs to resim everytime. Making it quite useless :frowning:

I remember also testing the maxscript functions from with the FumeFX interface and couldn’t get them to function as I wish either.

You need the ability to either call and load a snapshot via maxscript, or the calculate one step needs a maxscript function (not good if you simming more than 1 step, I guess it would make for a good timewarp though:) ) Neither of which are available currently AFAIK (as Bandu had already mentioned).


#9

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.