Script for rendering multiple cameras within the same scene

Hi!

I am working with a project where there is a need to render many single scenes where each scene has multiple cameras, As it is now I have to change the active camera manually, click on render, wait, save render, change camera, click on render etc.

I would really appreciate if someone could help me with a script for this. I have tried to understand the scripting but it looks overwhelming… Something similar is mentioned here http://forumarchive.daz3d.com/viewtopic.php?p=2600385 but the link to the script is dead.

I would be extremely grateful with help on how the script should be written and something about how to launch it…

This is what I want:

1. I open a .duf with a scene containing multiple cameras named Camera 1, Camera 2, Camera 3 etc
2. Instead of rendering each camera individually I would like to launch a script going thru ALL existing cameras, use existing settings, make a render for each and save them to the current folder, each render having the same name as the camera.

If it would be possible to launch a script doing just that it would save me TONS of hours of work!!

Thanks for any help!!

Comments

  • patience55patience55 Posts: 7,006
    edited December 1969

    Hi!

    I am working with a project where there is a need to render many single scenes where each scene has multiple cameras, As it is now I have to change the active camera manually, click on render, wait, save render, change camera, click on render etc.

    I would really appreciate if someone could help me with a script for this. I have tried to understand the scripting but it looks overwhelming… Something similar is mentioned here http://forumarchive.daz3d.com/viewtopic.php?p=2600385 but the link to the script is dead.

    I would be extremely grateful with help on how the script should be written and something about how to launch it…

    This is what I want:

    1. I open a .duf with a scene containing multiple cameras named Camera 1, Camera 2, Camera 3 etc
    2. Instead of rendering each camera individually I would like to launch a script going thru ALL existing cameras, use existing settings, make a render for each and save them to the current folder, each render having the same name as the camera.

    If it would be possible to launch a script doing just that it would save me TONS of hours of work!!

    Thanks for any help!!

    Casual's are the way to go :-) See page for more info. Title of page includes 4.

    https://sites.google.com/site/mcasualsdazscripts/camseq-for-ds-2-3

  • edited December 1969

    Hi Patience55! Thanks for your reply!

    To me it looks like an animation...an animation consist of course of many individual renders...but I actually don't want to make a movie, I want to have several individual still pictures with unique names...

    I will test it, but can you tell me if I will get x number of individual still images with unique names or will I end up with a single file where all renders are concatenated into an animation?


    Thanks! Sorry if I present myself as full blown stupid, but I am not that advanced....

  • edited December 1969

    Hi Patience55!

    I tested MCasual but it is asking for start and end frame, something I don't have in my set-up. I tested to load a number of cameras and there was change in "Camera Main" but probably not in the way it should be.

    The script is anyway very, very close to what I would like to find!! To enter x number of cameras like that, click "Do it" and then find some time later a number of render files in a folder would be perfect!

    Do you know how to tweak a script to do that?


    Joans

  • JaderailJaderail Posts: 0
    edited December 2013

    You could just add TIME to the timeline as Frames. Never change anything and then render each camera using that script. With nothing in the view changing (animated, just static) you will just get different views. Think outside the box... %-P

    Example: 5 camera's = 5 frames and just switch to each camera for one frame. That would be 5 renders.

    Post edited by Jaderail on
  • patience55patience55 Posts: 7,006
    edited December 2013

    As Jaderail said, make use of the Timeline.

    A at "0"
    B at "next point' [for stills, don't have to move it far].
    C at 'next point', etc.

    Render out to still images.
    .png will give a blank background unless there's a set or something 3D there.
    .jpg will give the background colour or backdrop if used. [Edit > Backdrop > select picture]

    Images will all have different names.

    To load more than one camera, yes, that is a problem. Haven't quite figured out why myself yet but loading most presets will delete all present.

    You can 'create' as many new cameras as you want though. Go to Parameters view, set it as though you were looking through the camera and create one, selecting it to have the current view for it. Give the camera a name.
    Make as many cameras as you want.
    THEN save out a camera preset to include 'all' of them.

    Post edited by patience55 on
  • patience55patience55 Posts: 7,006
    edited December 1969

    How to deal with keeping camera info:

    This Post by zigraphix ;-)

  • edited January 2014

    Hi Patience55 and Jaderail!

    Sorry for not coming back sooner! Other things came in between and it took some time before I could work with it again.

    What I want to say is: YES, it worked perfectly!

    When I realized that there is an option in the render settings called "image series", then it all made sense.

    One peculiarity though: after activating the animation, it is not possible to make any adjustments to the cameras. It is not easy to explain in short the exact issue, but from the point when animation has been activated, all adjustments of camera position will be as if they where "frames" - I get multiple or rather confusing positions for the same camera. I have tried everything to cure this but the easy way out is the following:

    1. Set all cameras as they should be.
    2. SAVE the scene as for example "SCENE ORIGINAL.duf"

    3. SAVE the same scene under a new name like "SCENE TMP.duf"
    2. Load camseq settings
    3. Go to "Timeline", step one position forward. Click on "play".
    4. Activate "Camera Main"
    5. Choose "Image Series" and click on Render.

    7. IF, there is a need to adjust any camera settings for a new series, use "SCENE ORIGINAL" and repeat the above. I could never get "SCENE TMP" to work properly once "Play" under "Timeline" was activated. Somehow it is activated no matter what I do, including quitting DAZ3d and open the scene again, and I can't find any button called "Stop" etc. I am sure it is a way around this but i couldn't figure it out. The cure above works perfectly for me anyway.

    Thanks Patience55 and Jaderail for all the help!

    Post edited by veronicamaggio468-2399837 on
Sign In or Register to comment.