ScriptSpot home

Create Vray Camera from Perspective View

Downloads

Release history (1)
  • Version 1.0Listed version

    Listing updated

    No download linked to this version

Other files (2)
3ds Max compatibility
Unknown
Community compatibilityNo compatibility reports yet

No reports yet for the available releases.

Community reviewsNo reviews yet.

Listing details

Version
1.0
Original version requirement
Max 2013 & Higher
Other software required
VRAY
Author’s update date
Legacy votes
6
Listing created
How compatibility works

Compatibility comes from the author’s supported range or requirements in the original listing. A tested version records what the author tried.

“2020 unconfirmed” in the catalog means support for 3ds Max 2020 is still unknown.

Community reports record successful tests on specific releases.

Posted by

oliveremley

Oliver Emley

More by this author

This is a script that will allow you to create a Max Standard Target Camera (Ctrl+C) at the click of a button. More importantly it will allow you to create a VRay Phycical Camera from prespect view at the touch of a button. No more having to align your Vray-camera with the standard Max Camera. You can also choose which camera to display in the selected viewport from a drop-down list

 

 

Setup & notes

To install simply copy the downloaded macroscript file to C:\Users\(Username...)\AppData\Local\Autodesk\3dsMaxDesign\2013\ENU\usermacros You may need to enable show hidden files to access the folder. After that you open 3ds max, go to customize> Customize User Interface> Toolbars. Under category find Oliver Emley and then drag CAMVIEW to an existing toolbar or create a new one. I have created it in Max 2013 but it may work in prevous versions. Hope it makes all your lives easier.

 

 

Comments (9)
chris

2018 Max

It does not work for 2018 version. Not for Vray physical camera at least. The 3ds camera works fine.

ali

VRay Phycical Camera

by Con+c we can create default 3ds max camera, what about VRay Phycical Camera?
why chaos group did not working on this?
https://irancgcenter.com/

Victor

Corona

Does it work with Corona Cameras?
Could you update the script for it please?

JCR2011

Thank you

So much for this incredibly useful script!

fajar

--- a rip off from max


--- a  rip off from max create camera from viewport ported to vray physical camera
-- assign some keyboard to it , to make it easy
macroScript VRayPhysicalCamera_From_View
ButtonText:"Create V-Ray Camera From View"
category:"VRay" 
internalCategory:"Lights and Cameras"
Tooltip:"Create V-Ray Physical Camera From View"
Icon:#("Cameras",3)
	
(
	on IsEnabled return (If (viewport.Gettype() == #view_persp_user) do return true)
	
	on execute do
	(
	fn verifyRenderer=
	(
		if (matchpattern ((renderers.current) as string) pattern:"v_ray*" ignoreCase:true) then return "vray" else return "other"
	)
	
	myCamColor=(color 5 54 179)
	myCamTarget=getscreenscalefactor [0,0,0]
	myCamVOF= getViewFOV()
	myCamXForm= Inverse(viewport.getTM())
	
	if viewport.Gettype() == #view_persp_user do
		(
			if (verifyRenderer()) == "vray" then	
			(	
				sCam=vrayPhysicalCamera  target_Distance:myCamTarget isSelected:on \
							wirecolor:myCamColor
				sCam.specify_fov=true
				sCam.fov= myCamVOF	
				sCam.Transform = myCamXForm 
				viewport.setcamera sCam	
				sCam.targeted=true	
				scam.target.wirecolor=myCamColor
				sCam.type = 0
			)
			else
			(
				stdCam = Freecamera  targetDistance:myCamTarget isSelected:on wirecolor:myCamColor
				stdCam.fov = myCamVOF
				stdCam.orthoProjection = false 
				stdCam.Transform = myCamXForm 
				viewport.setcamera stdCam
				if(Perspective_Match.IsMatching() == false) then
				(
					stdCam.type = #target
					stdCam.target.wirecolor = myCamColor
				)	
				--messageBox "\tCreate V-Ray PhysicalCamera \nonly support when you're set V-Ray as renderer !" title:"3ds Max"
			)
		)
	)
)

assign to your ctrl+c shortcut....it'll create vray camera instead standard camera when its detect your renderer is vray , n standard camera if the renderer isnt vray.

3dmax farsi

VRay Phycical Camera

by Con+c we can create default 3ds max camera, what about VRay Phycical Camera?
why chaos group did not working on this?
http://www.3dmaxfarsi.ir/

MrTom

A VRay camera can be aligned to the perspective view by creating it in another viewport, activating perspective view and THEN use 'CTRL + C' as normal.

This will align the new VRay camera to the perspective view....in fact it'll align any selected VRay camera to the perspective view.

All K

Yeah, but you can find this in Z Tools, you can find more here 

dsp_418

Very useful, thank you!