Hi,
I'm looking forward to create a way to share materials between different DCCs. The current solution using LocalDB is bit slow and clumsy.
is it possible to write a script that takes all or selected materials from a scene and exports it to json or xml file?
Material exporter
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
System – Windows 11
My Behance portfolio, Blender plugin FB support group
Yes it should be possible but do you have Lua on the import side as well?
Have the material already in a group / nodegraph, or create a new nodegraph and duplicate the selection inside it.
Then you can use `octane.nodegraph.exportToFile` (.orbx or .ocs) or `octane.nodegraph.exportToString` (raw xml string).
On the import side, `octane.nodegraph.importFromFile` or `octane.nodegraph.importFromString`.
Have the material already in a group / nodegraph, or create a new nodegraph and duplicate the selection inside it.
Then you can use `octane.nodegraph.exportToFile` (.orbx or .ocs) or `octane.nodegraph.exportToString` (raw xml string).
On the import side, `octane.nodegraph.importFromFile` or `octane.nodegraph.importFromString`.
Thanks for the info.
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
System – Windows 11
My Behance portfolio, Blender plugin FB support group