Announcement

Collapse
No announcement yet.

I want output size setting in VrayCam.

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

  • #16
    If this is to be implemented, please can it have a check box to enable/disable. We use RPM and fear this would interfere!
    Set V-Ray class properties en masse with the VMC script
    Follow me for script updates: @ollyspolys

    Comment


    • #17
      Made this a while ago. It copies the output size to current selected camera, and vice versa.
      I'm not the best in UI, feel free to rewrite. Just don't sell it like some of those lame scripts on scriptspot.


      MacroScript RenderSync category:"Ivor"
      (
      the_rendersync = attributes rendersync
      (
      parameters main rolloutarams
      (
      rWidth type:#integer ui:Rwidth default:1280
      rHeight type:#integer ui:Rheight default:1024
      cTop type:#integer ui:ctop default:0
      cLeft type:#integer ui:cLeft default:0
      cWidth type:#integer ui:cWidth default:1280
      cHeight type:#integer ui:cHeight default:1024
      cComments type:#string ui:cComments defaults:""
      )

      rollout params "Render Sync"
      (
      Label lbl1 "Render" align:#left
      spinner Rwidth "Width" type:#integer range:[1,32678,1280]
      spinner Rheight "Height" type:#integer range:[1,32678,1024]
      button SaveFromSetup "Save from Setup"
      button LoadToSetup "Load to Setup"
      Label lbl2 "Crop" align:#left
      spinner cTop "Top" type:#integer range:[0,32678,0]
      spinner cLeft "Left" type:#integer range:[0,32678,0]
      spinner cWidth "Crop Width" type:#integer range:[1,32678,1280]
      spinner cHeight "Crop Height" type:#integer range:[1,32678,1024]
      button SaveFromViewport "Save from Viewport"
      button LoadToViewport "Load to Viewport"
      Label lbl3 ""
      Label lbl4 "Render Sync 1.0"
      Label lbl5 "Ivor Ip 2008"
      edittext cComments "" height:36

      on SaveFromSetup pressed do(
      $.rendersync.rwidth =renderwidth
      $.rendersync.rheight=renderheight
      renderSceneDialog.update()
      )

      on LoadToSetup pressed do(
      renderwidth = $.rendersync.rwidth
      renderheight = $.rendersync.rheight
      renderSceneDialog.update()
      )
      )
      )



      if superclassof $ == camera then
      (
      custAttributes.add $ the_rendersync
      )

      )

      Comment


      • #18
        Thanks. Looks really useful. Now if it was automatic I'd like it even more but it seems pretty cool.

        It's best to wrap the script in CODE tags to avoid the smilies....

        Code:
        MacroScript RenderSync category:"Ivor"
        (    
            the_rendersync = attributes rendersync
                (
                    parameters main rollout:params
                    (
                        rWidth type:#integer ui:Rwidth default:1280
                        rHeight type:#integer ui:Rheight default:1024
                        cTop type:#integer ui:ctop default:0
                        cLeft type:#integer ui:cLeft default:0
                        cWidth type:#integer ui:cWidth default:1280
                        cHeight type:#integer ui:cHeight default:1024
                        cComments type:#string ui:cComments defaults:""
                  )
                
                    rollout params "Render Sync"
                    (
                        Label lbl1 "Render" align:#left
                            spinner Rwidth "Width" type:#integer range:[1,32678,1280]
                            spinner Rheight "Height" type:#integer range:[1,32678,1024]
                            button SaveFromSetup "Save from Setup"
                            button LoadToSetup "Load to Setup"
                        Label lbl2 "Crop" align:#left
                            spinner cTop "Top" type:#integer range:[0,32678,0]
                            spinner cLeft "Left" type:#integer range:[0,32678,0]
                            spinner cWidth "Crop Width" type:#integer range:[1,32678,1280]
                            spinner cHeight "Crop Height" type:#integer range:[1,32678,1024]
                            button SaveFromViewport "Save from Viewport"
                            button LoadToViewport "Load to Viewport"
                        Label lbl3 ""
                        Label lbl4 "Render Sync 1.0"
                        Label lbl5 "Ivor Ip 2008"
                        edittext cComments "" height:36
                                
                        on SaveFromSetup pressed do(
                            $.rendersync.rwidth =renderwidth
                            $.rendersync.rheight=renderheight
                            renderSceneDialog.update()
                      )
                        
                        on LoadToSetup pressed do(
                            renderwidth = $.rendersync.rwidth
                            renderheight = $.rendersync.rheight
                            renderSceneDialog.update()
                      )
                  )
              )
            
        
        
            
            if superclassof $ == camera  then
            (    
                    custAttributes.add $ the_rendersync
          )
        
        
        )
        www.dpict3d.com - "That's a very nice rendering, Dave. I think you've improved a great deal." - HAL9000... At least I have one fan.

        Comment


        • #19
          Thank you
          This looks very helpful.

          Is there a way that Vray Frame Buffer output size and/or Render Settings Output size automatically gets updated when we assign the camera to render?
          This will be very useful when having batch renders.
          for my blog and tutorials:
          www.alfasmyrna.com

          Comment


          • #20
            Hi,
            I have made this script a few years ago (now we use a more advanced version), it uses custom attributes (any camera works) and has a ui to change camera resolution, double click on the camera resolution to change. It has some problems that were solved in latter versions but that i'm not allowed to share. Also last year in 3dsmax beta i tried to get the stripdown version included in the Samples shipped with max, but it seems it got "lost in autodesk space". Share and change at will as long you don't sell it. There may be bugs, and the coding is pretty dated, also there is no macroscript defined, just drag to the viewport the extracted file.

            Best regards,
            Daniel Santana

            ResolutionByCameraV2.zip
            Daniel Santana | Co-Founder / Technical Director
            You can do it! VFX
            Lisbon/Porto - Portugal
            http://www.ycdivfx.com

            Comment


            • #21
              Thank you. I will check this.
              What kind of problem did you encounter? Will be good to know.
              for my blog and tutorials:
              www.alfasmyrna.com

              Comment


              • #22
                Hi,
                The problems were mostly related to a bug in version 9? or 2010 of max i can't remember, in which the custom attributes were crashing max. I know that after a service pack the issue was resolved, but i already had migrated to user properties at the time.

                Best regards,
                Daniel
                Daniel Santana | Co-Founder / Technical Director
                You can do it! VFX
                Lisbon/Porto - Portugal
                http://www.ycdivfx.com

                Comment


                • #23
                  +1 for RPManager. It really is an excellent tool. Save me heaps of time on every project. Plus Grant Adam provides excellent support. Http://Www.rpmanager.com

                  Comment


                  • #24
                    +1 for adding more features into the vrayphysicalcam. I still want some kind of lock exposure setting as well (so that you can alter the aperture for dof but the shutter speed changes so the exposure level doesnt change), and color mapping per camera, and and and
                    www.peterguthrie.net
                    www.peterguthrie.net/blog/
                    www.pg-skies.net/

                    Comment


                    • #25
                      Originally posted by peterguthrie View Post
                      +1 for adding more features into the vrayphysicalcam. I still want some kind of lock exposure setting as well (so that you can alter the aperture for dof but the shutter speed changes so the exposure level doesnt change), and color mapping per camera, and and and
                      +1
                      great ideas indeed, got my vote
                      Nicolas Caplat
                      www.intangibles.fr

                      Comment


                      • #26
                        yes please! render res. override in the physcam, plus ability to lock exposure as peter suggested

                        Comment


                        • #27
                          +1 !
                          it would be be really cool !
                          (Sorry for my bad english)

                          Comment


                          • #28
                            Another vote for RPManager if you want to do practically anything "per camera" in 3ds max.

                            Its only $300USD (less for first license), and support is fantastic. Pays for itself pretty much straight away. Plays beautifully with VRay.

                            I don't know how anyone can render in 3ds max without it!
                            Toucan Creative
                            Linkedin Profile

                            Comment

                            Working...
                            X