No problem, I really appreciate any help from you Face.
Thank you.
Export / Translate ocs - camera file to fbx or maya camera
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
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
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
@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
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
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
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
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
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
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
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
Thanks 

Win 11 64GB | NVIDIA RTX3060 12GB
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
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