Results 1 to 4 of 4

Thread: render current frame to custom path in python

  1. #1
    Registered User
    Join Date
    Mar 2014
    Location
    france
    Posts
    2

    render current frame to custom path in python

    I am trying to do an export script from lightwave in python.
    for that I need to render the current frame at a custom path ( along with a depth map).
    I have found only the command lwsdk.command("RenderFrame") that launch a render but I don't know how to manipulate the GUI to save this image in Python.

    Thanks in advance for any advice or any useful link.
    Last edited by alpha666; 03-19-2014 at 10:44 AM.

  2. #2
    You can call the commands below like so:
    Code:
    lwsdk.command('SaveRGB(1)'
    lwsdk.command('SaveRGBPrefix(filename)')
    My opinions and comments do not represent those of my employer.
    www.ernestpchan.com
    www.zazzle.com/gopuggo

  3. #3
    Registered User
    Join Date
    Mar 2014
    Location
    france
    Posts
    2
    sorry, but the commands does not works. ( you have to suppress the parenthesis to make the commands pass the parser)
    And those two commands does not seems to do anything. ( the python answer is 1 but no image is appearing at the path specified)

  4. #4
    I'll double check my syntax but that was copied out of a working script.

    Those two commands just enable options in the Render Globals panel. They don't generate the image.
    My opinions and comments do not represent those of my employer.
    www.ernestpchan.com
    www.zazzle.com/gopuggo

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •