Announcement

Collapse
No announcement yet.

Lele's Vray Scripts

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

  • Lele's Vray Scripts

    Do these still work with Vray 2.0, and Max 2011? I tried installing them, but received an error one the Anything to Vray camera script. Which I beleive is the one I actually wanted to use.

    I am trying to convert a Max camera to Vray camera automatically. I want to do a conversion because the Max camera has an overshoot on it using the Breidt overshoot script, and I beleive I read that the overshoot would hold if converted to a Vray camera with Lele's scripts.

    Lele's scripts have not been updated for several years, so I am wondering if they are still valid tools?
    http://www.scriptspot.com/3ds-max/sc...les-vray-tools

  • #2
    He still lurks here occasionally. Post the error please and I'll take a look.
    Colin Senner

    Comment


    • #3
      Here is the error. as you can see, the .ms file it is looking for is located in the same directory. Not sure why it can't find it.

      That said, I think I am going to use Vray exposure at the global environment level instead. Well, I will use the environment method is I can figure out how to key frame the values.

      The only downfall that I see off hand to working at global level and using Max cameras is that you loose the film gate controls of the Vray camera.
      Attached Files

      Comment


      • #4
        Unless I'm misunderstanding what you want to do, you don't need Lele's tools to do what you want (although I use the Physcam Converter all the time in 2011 without errors). Run the overscan script on a camera, convert the view to a perspective view by pressing "p", create a new vray cam or reuse an old one and with it selected press Ctrl-C and the camera will snap to match the perspective view, then hit "c" to switch the view to the camera instead of the perspective view.
        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


        • #5
          Originally posted by dlparisi View Post
          Unless I'm misunderstanding what you want to do, you don't need Lele's tools to do what you want (although I use the Physcam Converter all the time in 2011 without errors). Run the overscan script on a camera, convert the view to a perspective view by pressing "p", create a new vray cam or reuse an old one and with it selected press Ctrl-C and the camera will snap to match the perspective view, then hit "c" to switch the view to the camera instead of the perspective view.
          I like where you are going with this, but hitting Ctrl-C to create a camera matching the view will only crate another Standard camera instead of a Vray camera.

          I will look into the Lele problem more. Maybe I will try and manually install it and see what happens.

          Comment


          • #6
            Originally posted by crazy homeless guy View Post
            I like where you are going with this, but hitting Ctrl-C to create a camera matching the view will only crate another Standard camera instead of a Vray camera.

            I will look into the Lele problem more. Maybe I will try and manually install it and see what happens.
            No. As long the vraycam is selected, when you hit Ctrl-C it will move the vraycam to match the perspective view.
            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


            • #7
              Good to know.

              Also, I manually installed the Lele script, and now it works fine. The problem I was facing was only in the installer included.

              Comment


              • #8
                Originally posted by dlparisi View Post
                No. As long the vraycam is selected, when you hit Ctrl-C it will move the vraycam to match the perspective view.
                I tired this method, but the Vray camera did not use the overscan settings when it snapped to the view.

                But thanks for letting me know that Lele Scripts were wroking for you. This is what caused me to do the manual install.

                Comment


                • #9
                  Originally posted by MoonDoggie View Post
                  He still lurks here occasionally. Post the error please and I'll take a look.
                  --Unknown property: “twolevel_useQMSamplerThresh” in V_Ray_Adv_1_50SP6:V_Ray_Adv_1_50SP6 is the error message I get in Max 2012 V-Ray 1.5 trying to use Lele's Matrix Exposimeter 1.17 This utility was so accurate...can we band together and fund him to update it?

                  Comment


                  • #10
                    change

                    .twolevel_useQMSamplerThresh

                    to:

                    .twoLevel_useDMCSamplerThresh


                    If there's more errors, please post them or post the script and I'll have it updated provided he doesn't mind.
                    Colin Senner

                    Comment


                    • #11
                      Thankyou thankyou

                      Comment


                      • #12
                        Fixed completely? Good.
                        Colin Senner

                        Comment


                        • #13
                          It is encrypted...go back to my first suggestion

                          Comment


                          • #14
                            This is a script I wrote a long time ago to make physical cameras out of a perspective viewport. I have it assigned to a button and it has worked well for me.

                            Code:
                            (
                            	fn calculateFOV film_width focal_length = (
                            		return 2.0 * atan (film_width / (2.0 * focal_length)) * 100.0
                            	)
                            	
                            	fn calculateFocalLength film_width fov = (
                            		return film_width / ( 2.0 * ( tan (fov / 2.0) ) )
                            	)
                            
                            	if (viewport.getType() == #view_persp_user ) do (
                            		local viewMat = viewport.getTM()
                            		local worldMat = inverse viewMat
                            		
                            		if viewport.getType() == #view_persp_user do (
                            			if (superClassOf selection[1]) == camera then (
                            				selection[1].transform = worldMat
                            				viewport.setCamera selection[1]
                            			)	else (
                            				local viewFOV = getViewFOV()
                            				local newCamera = VRayPhysicalCamera isSelected:true
                            				newCamera.film_width = 35.0
                            				newCamera.focal_length = calculateFocalLength newCamera.film_width viewFOV
                            				newCamera.transform = worldMat
                            				viewport.setCamera newCamera
                            			)
                            		)
                            	)
                            )
                            =======================
                            Ray Collett - Design Visualization Specialist
                            WSP USA - Visualization and Data Intelligence
                            Visualization & Data Intelligence Portfolio (vizportfolio.com)
                            =======================

                            Comment

                            Working...
                            X