Physical camera to corona camera

Hello.

Is the way to convert a physical camera to corona camera to add a CoronaCameraMod? Or is there a script?

Also I have over 80 cameras in a scene. Is there a script to add the CoronaCameraMod to all of them automatically?

Thanks

Not sure what you mean by the first sentence - if you convert it to a Corona Camera, you don’t need to add the CoronaCameraMod (which is a legacy thing - you apply it to other cameras to enable the Corona options for that camera, e.g. place it on top of a Physical Camera). If you convert it into a Corona Camera anyway, then you’d no longer need the CoronaCameraMod :smiley:

Hi Tom, Thanks.

I just assumed there was no way to convert a physical camera to a corona camera.
Is there?

Corona converter doesn’t do it, it seems.

Thanks.

If you mean converting all parameters such as iso, f-stop, etc, then there is no way.
If you mean replacing all camera positions in the scene, there is no way (maybe some 3ds Max tool can be used, like clone and align).
If you mean replacing a single camera’s position, you can use the Corona toolbar for this to place a Corona Camera in the active view.

Points 1 and 2 are actually interesting, so I will log it as a feature request.

Yes.
Thank you Maru. I was talking about 1 and 2.

(internal note id=309749419)

moved to
https://forum.corona-renderer.com/ Corona Material/Lights Converter (legacy) #msg144859

Resurrecting this old thread from the depths…

Any chance of a corona powertool or something to mass convert max physical cameras > corona cameras? Or maybe as part of the Corona Converter?

It’s fine if it’s not 1:1 the same - just the critical stuff like cam+target position, shift/tilt, FOV etc. and maybe any other data it’s able to pull like aperture etc.

Cheers,

maybe this is what you need

quick and dirty for those who don’t want to use the paid script:
(please do a scene hold before running this)


phyCams = for i in cameras where isKindOf i Physical_Camera collect i	

for c in phyCams do 
	(
	cc = CoronaCam()
	cc.name = c.name + "_converted"
	cc.pos = c.pos
	if c.targeted == true then 
		cc.target.pos = c.target.pos
		else
			cc.targeted = off
			cc.transform = c.transform
	cc.fov = c.fov
	cc.fstop = c.f_number
	cc.verticalShift = c.vertical_shift/100
	cc.horizontalShift = c.horizontal_shift/100
	cc.horizontalTilt = c.horizontal_tilt_correction
	cc.verticalTilt = c.vertical_tilt_correction
	)
--delete phyCams -- enable this to delete the original cameras

Thanks both! Will check these out.

Just bought this, installed it and tried to run it, but when the script launches it immediately closed max (2024) as it was detected as malicious software (by Autodesk I think). Have you/anyone else come across this?

Have you tried contacting the author? They might have an insight into this:
https://d95design.com/help/

Otherwise, is the script a mcr or ms file? You could do a search for ‘execute’ check what that is actually doing.

As far as I’m aware you can disable the ‘security tools’ in Max - there’s an entry somewhere in the top menu. You might be able to run it once they’re disabled, of course this comes with the ‘on your own risk’ disclaimer…

We have logged this as a feature request in our system. We will let you know if there are any updates on this.

(Internal ID=1258735285)