Message 1 of 3
Not applicable
09-09-2016
01:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey guys.
I got a trouble in save the baked diffuseMap used maxscript ,
Max had a bug maybe, that is in the vfb(virtual frame buffer) the texture looks wrong and saved texture is currect.
Now the issue is when I used maxscript to render the diffuse to save a texture ,the resault is the texture in the vfb , the wrong texture.
I used max9 ,but I try it in max 2016 the problem also exist.
So I think, if have some method to save the currect texture.
here is my code
fn func_renderTex obj i_size outputFile= ( bitm = bitmap i_size i_size bakeMap = diffusemap() bakeMap.outputSzX = i_size bakeMap.outputSzY = i_size bakeMap.fileType = ".tif" bakeMap.filterOn = true bakeMap.shadowsOn =off bakeMap.lightingon = off bakeMap.targetMapSlotName = "Diffuse" bakeMap.enabled = true obj.INodeBakeProperties.addBakeElement bakeMap obj.INodeBakeProperties.bakeEnabled = on obj.INodeBakeProperties.flags = 1 obj.INodeBakeProperties.bakeChannel = 1 obj.INodeBakeProperties.nDilations = 100 render rendertype:#bakeSelected vfb:off progressBar:true outputFile:( outputFile + ".tif") outputSize:[i_size,i_size] to:bitm obj.iNodeBakeProperties.removeAllBakeElements() )
Solved! Go to Solution.
