Announcement

Collapse
No announcement yet.

Texture baking only works on a single object

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Texture baking only works on a single object

    So try this 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 = vraydiffusefiltermap()
    be1.fileType = ("d:\\" + o.name + ".tif")
    be1.fileName = filenameFromPath be1.fileType
    be1.enabled = true
    o.INodeBakeProperties.addBakeElement be1
    o.INodeBakeProperties.bakeEnabled = false
    o.INodeBakeProperties.bakeChannel = 1
    o.INodeBakeProperties.nDilations = 1
    )
    select objs
    render rendertype:#bakeSelected vfbff progressBar:true outputSize:[256,256]

    When you run a similar script in scanline, you get one bitmap per object. When you run in vray, you get only the first object rendered. Does maybe rendertype:#bakeSelected not work in vray?

    - Neil

  • #2
    V-Ray can only bake one object at a time right now; you will have to issue a render() call for each object you want to bake.

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      ..........
      Alexander Kazandzhiev
      V-Ray for 3ds Max developer

      Comment


      • #4
        Thanks for the info Vlado, I'll add this feature to my wishlist and then do multiple render calls.

        - Neil

        Comment

        Working...
        X