Specify Series/Image Path - DzRenderOptions

Hello,

It seems like there's a property missing from http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/renderoptions_dz

Where can I specify the Series Path or Image Path of the render settings?

I've employed my Google-fu to the best of my abilities, please accept my apologies if I missed some documentation regarding this.

Thanks!

Comments

  • Richard HaseltineRichard Haseltine Posts: 100,950

    Rob says it is renderSerFilename (i.e. render series filename)

  • laserwolvelaserwolve Posts: 34

    Hey Richard,

    Thanks for the reply. RenderSerFilename seems to update the top field in the attached image, but not the bottom one. Does it accept a second parameter, somehow?

    Furthermore, specifying the Series Base via script will actually wipe out any value in Series Path, upon execution. This leads to a generic "the render could not be saved" error message.

    Thanks for your input.

     

    Capture.PNG
    428 x 104 - 11K
  • laserwolvelaserwolve Posts: 34
    edited July 2021

    Never mind, I figured it out.

    To anyone wondering, Daz3D is smart enough to take whatever you give it from renderSerFilename and use the path as the Series Path and the file itself as Series Base. (While still incrementing images correctly, to boot)

    For example:

    oRenderOptions.renderSerFilename = 'C:/Folder/File.png';

    C:/Folder/File will be your Series Path and File.png will be your Series Base.

    BUT wonderful Windows File Explorer copies directory paths with slashes going the other direction. Derp. So a raw copypaste from File Explorer into the Script IDE will give you the aforementioned "The render could not be saved" error message. Just make sure it's 'C:/Folder/File.png' and not 'C:\Folder\File.png' and you're good.

    Post edited by laserwolve on
  • Richard HaseltineRichard Haseltine Posts: 100,950

    In script (and some programming languages, such as C) \ is an escape - it tells the system to treat the next character as a code (e.g. \n for newline). You can use \s as the path separator, but it has to escape itself to be taken literally - \\. / is safe and cross-platform so it's the better choice.

  • Richard HaseltineRichard Haseltine Posts: 100,950

    As for the former question, Rob says:

    If you are trying to set the values of properties in the Render Settings pane, look at the sample that shows how to access said properties - i.e., http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/rendering/render_settings_find_property/start
    ---
    If you are trying to control a render directly, set renderSerFilename to the full path of the file to render. You will still need to configure the rest of the DzRenderOptions object so it is the correct type, etc. - e.g., http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/rendering/render_to_asset_icon/start

Sign In or Register to comment.