I've been looking for a simple and clean method to export my scenes from Maya to Octane Standalone.
which mean, one export for my scene and one import in Octane, with a pin of each material.
For some reason, when I export one .OBJ from my scene, with materials option enable. I end up in Octane with a pin for every single shader of my scene, not just the object I exported.
I tried different export/import options without success.
So I move on the Alembic format.
Here the problem is different. When I export multiple object of my scene. The import node in Octane give me one material per object. Even if in Maya they share the same one.
I found out that when importing in alembic, it's the name's shape that is used to sort the materials.
My solution for this is to rename the name's shape. And give the same one for each object which use the same material.
Using this Mel script:
- Code: Select all
for ($i in `ls -sl -dag -shapes -l`)
rename $i "NewNameShape";
But this is not very convenient for a fast and simple workflow and we have to rename the name shape every time we create or modify a geometry. Every time that the name of the geometry change basically.
Same if we need new materials...
So I've wondering if anybody has a solution for a clean, simple and fast workflow between Maya and Octane, which gives a smart and efficient import node inside Octane?
Maybe a script that automatically change the name of the shape according to the material assigned? That we have to run every time we want to export something..
Thanks!