Why does the Render to Texture window overwrite my settings?
If I create a bake element using MaxScript, the Render to Texture window somehow overwrites my settings. Why? What could be the problem?
-- Gets the box
myBox = getNodeByName "box01"
-- Adds a lightmap
bakeProp = myBox.INodeBakeProperties
lmp = LightingMap()
-- 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,