Script - Create Corona Camera from View

here is a macroscript… must be in perspective view to use it.

-just drag the script to your 3ds max window.. you can find the scripts in cui-category-ebbmaxscript
-to use, just add a shortcut,add to menu,quad, etc.

requirement: corona 1.7 and higher
update: modified the script to work perfectly in newest released
ebbmaxscript-CreateCoronaCameraFromView.mcr (319 Bytes)

Awesome, seems to be working nicely.

Native feature like this is already logged in our task tracker.

Thank you very much, good sir!

Does not work for me…

make sure you have corona 1.7 installed..:slight_smile: else it does not work

thanks maru.

no worries… just helping the community.

Arf… only 1.6.3… Pffff I have no excuse I have to read (but I was so happy)…
I’ll install the new one thanks and sorry :wink:
Roland

Assigned ctrt+C directly to your script.
Thanks!

Awesome! Thank you so much

Hi I’m really enjoying your script, having a keyboard shortcut. with corona 2.0 (still i RC3 though) the position changes when adding a camera through your script. I know corona has a button for it, but if you are planning on updating the script it would be highly appreciated :wink:

Just add a line “cam.targeted = false” before the transformation:


(...)
		local cam = CoronaCam isSelected:true fov:(getViewFOV())
			cam.targeted = false
			cam.transform = inverse(viewport.getTM())
(...)

and it works again correctly. I had to change our script also at some point; something has changed during the dailies with CoronaCam.

Good Luck

Thanks! Had exact the same problem. Solved!

Cheers

updated the first post… seems like they change how corona camera works in the newer releases.

Very handy script, thanks for putting together. One request if you get around to tinkering some more.

Currently when I assign your script to ctrl-c it creates camera as advertised. Great
Having that said, is it possible to have it behave like the previous ctrl-c behavior, whereby, if you have a camera already selected it simply moves that camera to your current perspective (instead of making entire new camera).

Thanks for any updates!

Yes this. So I feel free to attach our script which

  • moves a selected camera instead of creating a new one
  • warns if the camera is locked (and asks for confirmation if so)
  • warns if a unlocked camera is selected when executing

We messed up cams regularly before having those confirmation boxes.

Good Luck

CreateCoronaCamFromView.ms (1.11 KB)

Ah, wonderful! Thanks, tested out and works well.