Community
Arnold for Maya Forum
Rendering with Arnold in Maya using the MtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Convert Camera (physical?) to Spherical

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
340 Views, 3 Replies

Convert Camera (physical?) to Spherical

Can you convert a normal Max camera to a MaxtoA Spherical one? I know in C4D you simply drop an Arnold tag onto your camera and set the custom type to Spherical.

I have a LOT of camera's imported from another software that I want to render as spherical and manually creating, duplicating & moving cameras will take way too long

3 REPLIES 3
Message 2 of 4
nicola.stefano.jannuzzo
in reply to: Anonymous

Here is a maxscript, courtesy of Zap. I still haven't tried it myself.

for x in getClassInstances Physical_Camera asTrackViewPick:true do ( 
	a = arnold_spherical_camera() 
	y = x.client
	a.transform = y.transform 
	-- if you want to get rid of the original one:
	delete y
)
Message 3 of 4
Anonymous
in reply to: Anonymous

Nicola, that worked perfectly. Thank you very much. Massive time saver!

Message 4 of 4
Anonymous
in reply to: Anonymous

If anyone is interested, I added a line to the code so that the camera names remain the same.

for x in getClassInstances Physical_Camera asTrackViewPick:true do ( 
    a = arnold_spherical_camera() 
    y = x.client
    a.transform = y.transform
    a.name = y.name
    -- if you want to get rid of the original one:
    delete y
)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report