Export / Translate ocs - camera file to fbx or maya 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
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

No problem, I really appreciate any help from you Face.
Thank you.
Tugpsx
Licensed Customer
Posts: 1151
Joined: Thu Feb 04, 2010 8:04 pm
Location: Chicago, IL
Contact:

i know this is maya specific, but i wonder if it can be applied to other exporters/importers would be interested in a Carrara/ Daz Studio version. Will check if I can intigrate this into the exporter script I currently use since camera info is not used with obj exports.
Win 11 64GB | NVIDIA RTX3060 12GB
tchoa
Licensed Customer
Posts: 189
Joined: Thu Jul 01, 2010 12:33 pm
Location: Montpellier

@Refracty: in my last post, to be more explicit, I would say that the simplest way to overcome the fileDialog2 restriction (to maya 2011+) in the current script... is to enter the path in the 'OCS File' field in the user interface. Do not know if it's with '/' or '\' on osx/linux... Then you just have to click the Reload button to parse the file and have 'Cameras' menu refreshed accordly.

Anyway I will put an update that should work correctly for older versions of maya.

@Tugpsx: feel free to pick some code inspiration in the script since it is ascii 'C like'. It's not a general method to parse the xml in the ocs, but this could be done in python i.e. for general purpose.

F
Win XP x64 | Q6600 2.40GHz | 8Go | GTX470 1.28Go // Win 7 x64 | I7 Q740 1.73Ghz | 6Go | GTX460m 1.5Go
tchoa
Licensed Customer
Posts: 189
Joined: Thu Jul 01, 2010 12:33 pm
Location: Montpellier

Script updated (same link): OCScameras.mel
Not tested. The 'Load' button should work with maya version < 2011.
Let me know if it does not work.

F
Win XP x64 | Q6600 2.40GHz | 8Go | GTX470 1.28Go // Win 7 x64 | I7 Q740 1.73Ghz | 6Go | GTX460m 1.5Go
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

Thanks to you tchoa for your fast response.
I just tried it.
The only problem is that I get an error when I try to load an .ocs

It sais: // Error: Object not found: OCScameras|OptionMenu. //

Any ideas how this could be fixed?
Thank you.
Cheers
Refracty
tchoa
Licensed Customer
Posts: 189
Joined: Thu Jul 01, 2010 12:33 pm
Location: Montpellier

The cause was a bug in maya 2012 related to the parenting of the menuItem to the optionMenuGrp OCScameras (and renamed to OCScameras|OptionMenu to find the parent).
Anyway this fix doesn't seems to work with older versions of maya or isn't needed (don't know that because I only have the 2 last versions of maya). So I changed to a simple optionMenu.
Updated version: OCScameras.mel
Wish it's compatible now.

F
Win XP x64 | Q6600 2.40GHz | 8Go | GTX470 1.28Go // Win 7 x64 | I7 Q740 1.73Ghz | 6Go | GTX460m 1.5Go
Tugpsx
Licensed Customer
Posts: 1151
Joined: Thu Feb 04, 2010 8:04 pm
Location: Chicago, IL
Contact:

Thanks :)
Win 11 64GB | NVIDIA RTX3060 12GB
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

tchoa,

this is great. It working perfect now with Maya7. I don't like to repeat myself but you are brilliant.
Kudos to you.
Thank you.
Refracty
Post Reply

Return to “General Discussion”