Is possible to miror a Camera?

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
GIOLETS
Licensed Customer
Posts: 228
Joined: Mon May 10, 2010 10:24 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
elsksa
Licensed Customer
Posts: 784
Joined: Sat Jul 24, 2021 1:06 am

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).
GIOLETS
Licensed Customer
Posts: 228
Joined: Mon May 10, 2010 10:24 am

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
elsksa
Licensed Customer
Posts: 784
Joined: Sat Jul 24, 2021 1:06 am

My bad, I misunderstood the question.
Why not doing it in post?
Korma
Licensed Customer
Posts: 10
Joined: Thu Aug 22, 2019 8:43 am

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 62 times
GIOLETS
Licensed Customer
Posts: 228
Joined: Mon May 10, 2010 10:24 am

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
Posts: 228
Joined: Mon May 10, 2010 10:24 am

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
Korma
Licensed Customer
Posts: 10
Joined: Thu Aug 22, 2019 8:43 am

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 ;)
Post Reply

Return to “Maxon Cinema 4D”