Announcement

Collapse
No announcement yet.

PNG Internal Library Error while scripting VRayFrameBuffer output

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

  • PNG Internal Library Error while scripting VRayFrameBuffer output

    Trying to script a solution for autopathing, but keep running into an error that I've gotten around before, I just don't remember how. It's the "PNG Library Internal Error" when changing the vray frame buffer's output_splitfilename via script.

    Here's a workaround someone found, but it's not working for me, any idea guys?

    http://forums.cgsociety.org/showthread.php?t=830811
    Last edited by MoonDoggie; 22-06-2015, 09:44 AM.
    Colin Senner

  • #2
    Figured it out, contrary to that code posted on CGSociety, this code works. Pass the argument a filename and extension "test.jpg" and it will "initialize" the vray frame buffer to not give this error when first opening a scene when changing the splitGBuffer filename without clicking the browse button.

    Code:
    fn initVRayFrameBuffer str = (
        -- Initialize the VRay Frame Buffer 
        -- http://forums.cgsociety.org/showthread.php?t=830811
        local bm_filename = (getDir #userscripts) + "\\" + (filenameFromPath str)
        local bm = Bitmap 10 10 color:red filename:bm_filename
        save bm
        if (isProperty renderers.current #output_splitbitmap) 
            renderers.current.output_splitbitmap = bm
        close bm
        deleteFile bm_filename
    )
    Colin Senner

    Comment

    Working...
    X