• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can a texture map be set to SmokeOpacityMap from MaxScript?
#1
Can a texture map be set to SmokeOpacityMap from MaxScript?

-------
Yuji Yamauchi
OakCorp Support
OakCorp [Sitni Sati Reseller of japan]
https://oakcorp.net
Yuji Yamauchi
Core i7 - 16GB/ Windows 10 -64bit / Geforce 1080
  Reply
#2
Hello,

You can get a shader by using GetShader()
Smoke Opacity Map is the 8th reference - if you can somehow access those.

Regards,
Kresimir Tkalcec
  Reply
#3
Hello, Kresimir

Sorry, I am a MacScript beginner.
SmokeDensity (Opacity)Map is not found even if it checks the property of standard shader.

showproperties $.standard
.ShadeFire : boolean
.FireColorSource (Fire_Color_Source) : integer
.Fire_Brightness (Color_Brightness) : float
.Fire_Opacity (Opacity) : float
.FireOpacityMapStrength (Opacity_Map_Strength) : float
.FireOpacityMapCoordinates (Fire_Opacity_Map_Coordinates) : integer
.Alpha_Multipler (Alpha_Multiplier) : float
.FireGIMultiplier (fR_GI_Multiplier) : float
.ShadeSmoke (Shade_Smoke) : boolean
.MinDens (Low_Threshold) : float
.MaxDens (High_Threshold) : float
.SmokeAmbientColor (Ambient_Color) : RGB color
.SmokeColorSource (Smoke_Color_Source) : integer
.SmokeDensity (Opacity) : float
.SmokeOpacityMapStrength (Opacity_Map_Strength) : float
.SmokeOpacityMapCoordinates (Smoke_Opacity_Map_Coordinates) : integer
.SmokeVisFalloff (Visual_Falloff) : float
.SmokeShadFalloff (Shadow_Falloff) : float
.SmokeGIMultiplier (fR_GI_Multiplier) : float
.CastShadows (Cast_Shadows) : boolean
.ReceiveShadows (Recieve_Shadows) : boolean
.ShadeFuel (Shade_Fuel) : boolean
.FuelColorSource (Fuel_Color_Source) : integer
.FuelAmbientColor (Color) : RGB color
.FuelDensity (Opacity) : float
.FuelFalloff (Visual_Falloff) : float
.FuelGIMultiplier (fR_GI_Multiplier) : float
.FuelCastShadows (Cast_Shadows) : boolean
.FuelReceiveShadows (Recieve_Shadows) : boolean
.Smoke_Color_Gradient
.Fire_Color_Gradient
.Fire_Opacity_AFC
.Smoke_Opacity_AFC
false

Even though it changes SmokeOpacityMap, it is not shown on a Script recorder.
Even though it sets as follows, an error comes out.
-----------
$.standard.SmokeOpacityMap = Splat ()

Please give a hint a little more.
OakCorp [Sitni Sati Reseller of japan]
https://oakcorp.net
Yuji Yamauchi
Core i7 - 16GB/ Windows 10 -64bit / Geforce 1080
  Reply
#4
I'm able to access the map indexed at #9 based in this list:
Code:
for i in 1 to 9 do format "[%]: %\n" i $FumeFX001.standard[i]
[1]: SubAnim:Fire_Parameters
[2]: SubAnim:Smoke_Parameters
[3]: SubAnim:Fuel_Parameters
[4]: SubAnim:Smoke_Color_Gradient
[5]: SubAnim:Fire_Color_Gradient
[6]: SubAnim:Fire_Opacity_AFC
[7]: SubAnim:Density_Map
[8]: SubAnim:Smoke_Opacity_AFC
[9]: SubAnim:Fire_Map

But I'm unable to set it using the codes below:
Code:
>> foo = checker()
>> $FumeFX001.standard[9].value = foo
** system exception **
>> (($FumeFX001.getShader())[9]).value = foo
** system exception **

It always returns a system exception.
Tested on FumeFX 3.5.5, 3dsmax 2015
Jeff Lim
  Reply
#5
Hello,

It seems that MXS has read only sub anims, so at this point this seems impossible to assign a map.

Thank you.

Regards,

Kresimir Tkalcec
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)