So I'm having trouble texturebaking through maxscript (Vray 2.4, max 2014). Here's a sample script:
theObject1 = Sphere segs:32 mapcoords:true pos:[0,0,25]
theObject2 = Sphere segs:32 mapcoords:true pos:[0,0,100]
theMap = cellular cellColor:blue divColor1:red divColor2:yellow size:15
themat = standard diffusemap:theMap
theObject1.material = themat
theObject2.material = themat
objs = #(theObject1,theObject2)
for o in objs do
(
o.iNodeBakeProperties.removeAllBakeElements()
be1 = diffusemap()
be1.outputSzX = be1.outputSzY = 1024
be1.fileType = ("D:\\" + o.name + ".png")
be1.fileName = filenameFromPath be1.fileType
be1.filterOn = true
be1.shadowsOn = false
be1.lightingOn = false
be1.enabled = true
o.INodeBakeProperties.addBakeElement be1
o.INodeBakeProperties.bakeEnabled = true
o.INodeBakeProperties.bakeChannel = 1
o.INodeBakeProperties.nDilations = 1
)
select objs
render rendertype:#bakeSelected vfb
ff progressBar:true outputSize:[1024,1024]
If I render with scanline, it's fine. But if I set vray as my renderer, I get

Any idea what's going on? Thanks.
- Neil
theObject1 = Sphere segs:32 mapcoords:true pos:[0,0,25]
theObject2 = Sphere segs:32 mapcoords:true pos:[0,0,100]
theMap = cellular cellColor:blue divColor1:red divColor2:yellow size:15
themat = standard diffusemap:theMap
theObject1.material = themat
theObject2.material = themat
objs = #(theObject1,theObject2)
for o in objs do
(
o.iNodeBakeProperties.removeAllBakeElements()
be1 = diffusemap()
be1.outputSzX = be1.outputSzY = 1024
be1.fileType = ("D:\\" + o.name + ".png")
be1.fileName = filenameFromPath be1.fileType
be1.filterOn = true
be1.shadowsOn = false
be1.lightingOn = false
be1.enabled = true
o.INodeBakeProperties.addBakeElement be1
o.INodeBakeProperties.bakeEnabled = true
o.INodeBakeProperties.bakeChannel = 1
o.INodeBakeProperties.nDilations = 1
)
select objs
render rendertype:#bakeSelected vfb

If I render with scanline, it's fine. But if I set vray as my renderer, I get
Any idea what's going on? Thanks.
- Neil
Comment