07-11-2018, 10:33 AM
I've got a couple of questions in regards to FumeFX 4 and MaxScript:
1. I encountered a bug (?) where GetVel returns 0 unless Velocity is enabled in the viewport. This is quite bizarre and looks like a bug to me as I would expect any simulation data to be accessible at all times. Enabling viewport gizmos somehow doesn't feel like something one should have to do to get access to that data. Is that a known bug or a feature?
2. Is there a function which would inject maxscript code into simulation script (the one which user can set in General tab)? I can't find anything like that and I need to make an automated scene creator which also defines maxscripts for created fumefx grids.
3. Is there any way to access velocity, smoke or any other simulated data from outside the FumeFX "use maxscript" in the General tab? I want to build a tool, utility window which artists can just open and you retrieve velocity/smoke data of a selected FumeFX grid. It seems that GetVelLocal is only available if I put MaxScript into "use maxscript". So currently I have a maxscript which does that but artists have to copy the code from a file, paste it into "use maxscript" code slot, scrub through the timeline (UI is being open on PostLoad event) and only then they can click a button which retrieves velocity values. This is very silly to work with.
1. I encountered a bug (?) where GetVel returns 0 unless Velocity is enabled in the viewport. This is quite bizarre and looks like a bug to me as I would expect any simulation data to be accessible at all times. Enabling viewport gizmos somehow doesn't feel like something one should have to do to get access to that data. Is that a known bug or a feature?
2. Is there a function which would inject maxscript code into simulation script (the one which user can set in General tab)? I can't find anything like that and I need to make an automated scene creator which also defines maxscripts for created fumefx grids.
3. Is there any way to access velocity, smoke or any other simulated data from outside the FumeFX "use maxscript" in the General tab? I want to build a tool, utility window which artists can just open and you retrieve velocity/smoke data of a selected FumeFX grid. It seems that GetVelLocal is only available if I put MaxScript into "use maxscript". So currently I have a maxscript which does that but artists have to copy the code from a file, paste it into "use maxscript" code slot, scrub through the timeline (UI is being open on PostLoad event) and only then they can click a button which retrieves velocity values. This is very silly to work with.
Senior VFX Artist @ Foundry 42 UK