DustinBrown
04-06-2012, 09:19 PM
I've started a script that will render the UV template, but I'm not sure how to get it to save the rendered template as a TGA. Here's what I have so far:
modPanel.addModToSelection (Unwrap_UVW ()) ui:on
actionMan.executeAction 2077580866 "40194"
$.modifiers[#Unwrap_UVW].renderuv_width = 4096
$.modifiers[#Unwrap_UVW].renderuv_height = 4096
$.modifiers[#Unwrap_UVW].renderuv_seamedges = off
$.modifiers[#unwrap_uvw].unwrap5.renderUV ""
deleteModifier $ 1
rendOutputFilename = maxfilepath + "foo.tga"
targa.setColorDepth 24
targa.setCompressed = true
targa.setAlphaSplit = false
targa.setPreMultAlpha = true
modPanel.addModToSelection (Unwrap_UVW ()) ui:on
actionMan.executeAction 2077580866 "40194"
$.modifiers[#Unwrap_UVW].renderuv_width = 4096
$.modifiers[#Unwrap_UVW].renderuv_height = 4096
$.modifiers[#Unwrap_UVW].renderuv_seamedges = off
$.modifiers[#unwrap_uvw].unwrap5.renderUV ""
deleteModifier $ 1
rendOutputFilename = maxfilepath + "foo.tga"
targa.setColorDepth 24
targa.setCompressed = true
targa.setAlphaSplit = false
targa.setPreMultAlpha = true
