Script for late night RENDER

winberrywinberry Posts: 34

Is there any way (script?) to create a multi camera timeline and have it render without intervention: ie. Layout the story then render at night while away from computer? Best I've come up with (and it's not working too good) is to use 1 camera throughout - but am having issues with that approach.

thanks for your help

Comments

  • Richard HaseltineRichard Haseltine Posts: 101,434
    edited November 2012

    Yes, that would be scriptable. To switch cameras in DAZ Studio, assuming you have a variable storing the camera, use

    var viewMgr = MainWindow.getViewportMgr();
    var activeView = viewMgr.getActiveViewport();
    var camera; // camera should be set to the camera we wish to use
    
    if (camera) {
     if ( activeView ) {
      var viewport3d = activeView.get3DViewport();
      if ( viewport3d ) {
       viewport3d.setCamera( camera );
      }
     }
    }
    Post edited by Richard Haseltine on
  • winberrywinberry Posts: 34
    edited December 1969

    Great, thanks!
    Also, are there any books on programming DAZ and DAZ scripts?

Sign In or Register to comment.