![]() |
maxscript access to smoke color gradient - 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: maxscript access to smoke color gradient (/showthread.php?tid=2011) |
maxscript access to smoke color gradient - finalight - 09-17-2019 This might be an old topic however a search didn't turn up an answer.. I use RPManager to access multiple fumefx boxes to control various params, etc. - that probably didn't need to be mentioned. It's really a maxscript question - I can't seem to get access to change the smoke color via maxscript. I see a function called standard.smoke_color_gradient however the value only says 'reftarg' and I was expecting an RGB value or perhaps 'integer/rgb' pairs if key mode is turned on for the smoke gradient. How might I control the smoke color? I have dozens of smoke sims I'd like to vary the smoke value/hues for, and maxscript would save a ton of time. Thanks! Re: maxscript access to smoke color gradient - sitnisati - 09-17-2019 Hello, With FumeFX selected, you can: shd=$.GetShader() showproperties shd showinterfaces shd.Smoke_Color_Gradient I hope this helps. Regards, Kresimir Tkalcec Re: maxscript access to smoke color gradient - finalight - 09-17-2019 Great - and then how would I change the color of the smoke gradient? I'm presuming I need to add additional maxscript to your above. When I run the above it pipes out a list of functions/commands. Specifically I'm trying to assign a random smoke color to about 50 smoke sims. Thanks Kresimir! Re: maxscript access to smoke color gradient - sitnisati - 09-20-2019 Hello, There isn't a way to set colors directly - you would have to go through the references system, but quick workaround would be: shd.Smoke_Color_Gradient.SetMode 1 shd.Smoke_Color_Gradient.AddKey 0.001f (color 55 55 55) shd.Smoke_Color_Gradient.AddKey 0.999f (color 55 55 55) Regards, Kresimir Tkalcec Re: maxscript access to smoke color gradient - finalight - 09-24-2019 Thanks Kresimir! Will try that out. |