Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Feature Requests => [Max] Resolved Feature Requests => Topic started by: lupaz on 2019-01-06, 18:55:56

Title: Physical camera to corona camera
Post by: lupaz on 2019-01-06, 18:55:56
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
Title: Re: Physical camera to corona camera
Post by: TomG on 2019-01-06, 19:25:55
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 :)
Title: Re: Physical camera to corona camera
Post by: lupaz on 2019-01-06, 20:30:46
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.
Title: Re: Physical camera to corona camera
Post by: maru on 2019-01-07, 12:22:28
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.
Title: Re: Physical camera to corona camera
Post by: lupaz on 2019-01-07, 14:31:31
Yes.
Thank you Maru. I was talking about 1 and 2.

Title: Re: Physical camera to corona camera
Post by: maru on 2019-01-18, 11:42:53
(internal note id=309749419)
Title: Re: Physical camera to corona camera
Post by: maru on 2019-03-01, 13:04:33
moved to
https://forum.corona-renderer.com/index.php?topic=126.msg144859#msg144859
Title: Re: Physical camera to corona camera
Post by: alexyork on 2023-11-17, 16:08:31
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,
Title: Re: Physical camera to corona camera
Post by: LE DON on 2023-11-20, 10:52:41
maybe this is what you need
https://d95design.com/product/camera-converter/
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
Title: Re: Physical camera to corona camera
Post by: clemens_at on 2023-11-20, 11:26:14
quick and dirty for those who don't want to use the paid script:
(please do a scene hold before running this)

Code: [Select]
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
Title: Re: Physical camera to corona camera
Post by: alexyork on 2023-11-20, 12:27:50
Thanks both! Will check these out.
Title: Re: Physical camera to corona camera
Post by: alexyork on 2023-11-20, 16:12:08
maybe this is what you need
https://d95design.com/product/camera-converter/
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

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?
Title: Re: Physical camera to corona camera
Post by: James Vella on 2023-11-20, 16:26:27
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.
Title: Re: Physical camera to corona camera
Post by: pokoy on 2023-11-20, 16:31:35
maybe this is what you need
https://d95design.com/product/camera-converter/
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

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?

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...
Title: Re: Physical camera to corona camera
Post by: Avi on 2023-11-29, 12:26:19
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,

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)