Announcement

Collapse
No announcement yet.

vray camera with flash and image aspect!

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

  • vray camera with flash and image aspect!

    hopefully some one can help out on archiving this.

    problem:
    when creating several still images for a project I usually change the image aspect and flash settings per camera, of course if you have 20 stills for a project doing this per camera and summiting for rendering its a really long process so I set up to find a solution.

    the first script I had was one that set the image aspect per camera on the camera custom properties then I had another script to summit all the cameras for rendering and this script would read the custom properties to adjust the render resolution, this worked a bit but still I had to run the script each time I wanted to render plus it did not had the flash issue yet, of course this can be add it but I tough of another solution.
    To create an scripted vray camera based on the original vray camera with new properties like image resolution per camera and flash settings.

    while creating this script I encounter several issues the first one. for some strange reason I could not create a scripted camera base on vray camera from the create panel. it had to be done trough a macro(script) after overcoming that issue it all appeared to be working but to my surprise after clicking rendering. now all the physical camera settings(Iso, distortion, exposure, etc) were not working.
    the new camera is behaving like a regular max camera even do its based on vraycamera.

    so maybe some one with maxscript experience can help out to resolve this issue.

    I have attached both the macro and the actual script, drop them in :
    ...\Autodesk\3ds Max 2010\Scripts\Startup

    after you restart max you will have new macro in the --G.Tools-- sections just drag the macro anywhere you want.
    you will also get a new vraycamera(VrayCameraPlus) in create ->cameras->vray. but DONT use this to create the camera.

    IMPORTANT: you have to use this macro to create the camera otherwise the new camera will not have the new settings(flash and resolution) I don't know if its a Max, Vray or my script bug.

    new camera, VrayCameraPlus.
    it will have to sections. Resolution and Flash.

    - Resolution: its connected to the render settings if its on auto what ever you change its going to get updated on the render settings, that way you can be changing the aspect ratio to compose you image with out opening the render settings. the idea on this one is that at render time a preRender callback would check if this setting was checked if so it would use this resolution and not the one in the render settings. unfortunately maxscript callbacks doesn't allow me to change the resolution in a prerender callback(hr.....).

    Flash: this one basically creates a vrayLight that is attached to the camera with all the vraylight settings plus position and rotation in relation with the camera position, it also creates a preRender callback which check when you hit render if its a vraycamera plus and if the flash is on, if it is then it turns off all other flashes and this leaves it on, so you don't have to go trough all the cameras manually and turn off the flash preview.

    any help really appreciate it.

    thanks
    Guillermo Leal.
    Attached Files
    Guillermo Leal LLaguno
    www.evvisual.com
    www.steelbluellc.com
Working...
X