Get Perspective Projection From Camera?

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
calus
Licensed Customer
Posts: 1308
Joined: Sat May 22, 2010 9:31 am
Location: Paris

leehenshall wrote: Calus:

In a previous thread you linked me to a useful LUA script. Do you think it is possible to create a script to extract camera position/rotation/focal data from Octane standalone and export it in a format that is readable my most dcc applications?
well we can get the values from the camera node, just copy the camera node (Edit>copy or CTRL C) and paste in a text editor, you can see it paste an xml description of the camera node with all his values.
So I guess we could use a mel script in maya to convert this values to Maya camera attributes.
Other than that I can't see any option to export anything from Octane.
Pascal ANDRE
leehenshall
Licensed Customer
Posts: 184
Joined: Sun Oct 25, 2015 5:44 pm
Location: England
Contact:

Ah cool I had no idea you could do that. So what do you think the chances of a generous forum user or an Octane dev creating a script to do this?

A college of mine mentioned this might be possible using Python to create a simple script to pharse the XML data and create a camera in Maya. I think this could be done by using the camera position and the target information to get the exact position and rotation of the camera.
calus
Licensed Customer
Posts: 1308
Joined: Sat May 22, 2010 9:31 am
Location: Paris

leehenshall wrote:Ah cool I had no idea you could do that. So what do you think the chances of a generous forum user or an Octane dev creating a script to do this?

A college of mine mentioned this might be possible using Python to create a simple script to pharse the XML data and create a camera in Maya. I think this could be done by using the camera position and the target information to get the exact position and rotation of the camera.
well I already had a look at how to parse any kind of octane node tree in maya.
The parsing part is easy enough but not so much the maya node creation part as there's too much difference between Maya plugin nodes and standalone.
So I prefer to wait for the next Maya plugin release which will have all the exact same nodes and attributes as standalone, so the node creation part will need no effort.

Also there's already an octane xml parser inside the Maya plugin, the "octane -io" function, this is what import the octane shaders from the live db.
So you can already save a camera from standalone in your "local db", and import it in maya from your "local db" !!!
But obviously it doesn't create anything in maya yet as there's no octane camera node yet in maya.
But in the next plugin it should be really easy for kai to allow the Local db import for any kind of nodes graph.
Pascal ANDRE
User avatar
Phantom107
Licensed Customer
Posts: 686
Joined: Tue Jul 24, 2012 11:31 am
Location: The Netherlands

My bad I misinterpreted the topic!
Post Reply

Return to “General Discussion”