Is possible to miror a Camera?

Forums: Is possible to miror a Camera?
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

Is possible to miror a Camera?

Postby GIOLETS » Wed Aug 10, 2022 10:35 am

GIOLETS Wed Aug 10, 2022 10:35 am
I'm very sorry for my probably stupid question, but I need to have a Camera that realizes a classic single shot and another one identical but mirroring (in the horizontal axes) the image (the same making in Photoshop "horizontal mirroring").
Is possible using an OSL script?

Many thanks

Luca
i9-10900x, 96GB DDR4, 2xRTX 2080 TI, ASUS X299 SAGE, Windows 10
http://www.visual4d.it
GIOLETS
Licensed Customer
Licensed Customer
 
Posts: 228
Joined: Mon May 10, 2010 10:24 am

Re: Is possible to miror a Camera?

Postby elsksa » Wed Aug 10, 2022 1:32 pm

elsksa Wed Aug 10, 2022 1:32 pm
Hi, no worries for asking such question, although it's unrelated to Octane.
Anyone with scripting skills could scrip it, indeed.

The simplest manual approach would be to mirror the Camera coordinates values (position, angle etc).
elsksa
Licensed Customer
Licensed Customer
 
Posts: 784
Joined: Sat Jul 24, 2021 1:06 am

Re: Is possible to miror a Camera?

Postby GIOLETS » Wed Aug 10, 2022 1:50 pm

GIOLETS Wed Aug 10, 2022 1:50 pm
Thanks a lot for your reply, but I need that the camera stays in the same position and shot one image in the normal way and another with horizontal mirroring.
I know this is not related strictly with Octane but I think could be resolved with an OSL script, unless I forget some basic c4d command!
i9-10900x, 96GB DDR4, 2xRTX 2080 TI, ASUS X299 SAGE, Windows 10
http://www.visual4d.it
GIOLETS
Licensed Customer
Licensed Customer
 
Posts: 228
Joined: Mon May 10, 2010 10:24 am

Re: Is possible to miror a Camera?

Postby elsksa » Wed Aug 10, 2022 2:03 pm

elsksa Wed Aug 10, 2022 2:03 pm
My bad, I misunderstood the question.
Why not doing it in post?
elsksa
Licensed Customer
Licensed Customer
 
Posts: 784
Joined: Sat Jul 24, 2021 1:06 am

Re: Is possible to miror a Camera?

Postby Korma » Wed Aug 10, 2022 2:37 pm

Korma Wed Aug 10, 2022 2:37 pm
yes it is unfortunately really not self-explanatory in Cinema 4D.

Put everything but the camera in a null, make a new take, change X size to -1 in the new take. Example attached
Attachments
flip horizontal.zip
(2.6 MiB) Downloaded 34 times
Korma
Licensed Customer
Licensed Customer
 
Posts: 10
Joined: Thu Aug 22, 2019 8:43 am

Re: Is possible to miror a Camera?

Postby GIOLETS » Wed Aug 10, 2022 3:02 pm

GIOLETS Wed Aug 10, 2022 3:02 pm
The reason why I can't flip in photoshop is that I have a huge quantity of these images since I'm doing a configurator, but, I know it's an option to make a batch procedure.

Thanks, Korma for your help this seems the only option that I have since I don't know what could happen to my scene (and all my Takes!) if I flip all in "main". I'll do a test.

I thought that would be possible only to flip my camera...
i9-10900x, 96GB DDR4, 2xRTX 2080 TI, ASUS X299 SAGE, Windows 10
http://www.visual4d.it
GIOLETS
Licensed Customer
Licensed Customer
 
Posts: 228
Joined: Mon May 10, 2010 10:24 am

Re: Is possible to miror a Camera?

Postby GIOLETS » Wed Aug 10, 2022 4:01 pm

GIOLETS Wed Aug 10, 2022 4:01 pm
ok, also after doing all the Takes (there are about 1000) enclosing all the scene except cameras in a null obiect don't broke nothing and now I can mirror all the entire scene changing the X scale to -1.
Thanks to all.
i9-10900x, 96GB DDR4, 2xRTX 2080 TI, ASUS X299 SAGE, Windows 10
http://www.visual4d.it
GIOLETS
Licensed Customer
Licensed Customer
 
Posts: 228
Joined: Mon May 10, 2010 10:24 am

Re: Is possible to miror a Camera?

Postby Korma » Wed Aug 10, 2022 4:26 pm

Korma Wed Aug 10, 2022 4:26 pm
I did this a few weeks ago with only a few takes and it was a huge pain in the end. I would not rejoice too soon ;)
Korma
Licensed Customer
Licensed Customer
 
Posts: 10
Joined: Thu Aug 22, 2019 8:43 am

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: No registered users and 12 guests

Fri Mar 29, 2024 2:40 am [ UTC ]