Hello everyone!
If I create a bake element using MaxScript, the Render to Texture window somehow overwrites my settings. Why? What could be the problem?
Example:
-- Gets the box
myBox = getNodeByName "box01"
-- Adds a lightmap
bakeProp = myBox.INodeBakeProperties
lmp = LightingMap()
bakeProp.addBakeElement lmp
-- Sets the file name and type
lmap = bakeProp.getBakeElement 1 -- (no other bake elements)
lmap.filename = "myFileName.tga"
The commands work fine, if I query the filename with "lmap.filename" it is "myFileName.tga".
But, now if I start the RTT window with "0", the filename changes to "Box01LightingMap.tga". Why?? It basicly ruins my work, since I wanted to use a script to generate proper filenames, and the RTT window to actually render the elements.
Any help is appreciated,
Thanks!
RicardoTeixeira · 2014-07-19
Graph · 2010-10-25