Announcement

Collapse
No announcement yet.

Render Vray Elements with MXS

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

  • Render Vray Elements with MXS

    I am having a lot of trouble scripting vray render elements. This is what I have

    re = maxOps.GetCurRenderElementMgr()
    re.SetDisplayElements FALSE
    theManager = maxOps.GetRenderElementMgr #Production
    re.addrenderelement (VRayDiffuseFilter elementname"VRayDiffuseFilter"))
    re.SetRenderElementFilename (0) ("C:\\DIFFUSEFILTER.PNG")

    If I run this snippet and hit the render button, I get a 'scrambled' image. If I manually add the 'VRayDiffuseFilter' element and set the image path, it renders correctly. What am I missing?

    Thanks in advance

  • #2
    Sorry, posted in wrong forum. Should be in MAX forum. Could this be moved to VRAY Public Forum?

    Comment


    • #3
      Thank you for moving this thread.

      Comment


      • #4
        When I open the 'scramnbled' image in Photoshop, it says that it's a bitmap, but opening the good image in Photoshop says, Layer 0, 8 bit RGB.

        Comment

        Working...
        X