Clo3D automation using API
Hello!
We're currently building a Clo3D plug-in which lets the user specify a list of colors per fabric and then generates colorways with combinations of all these colors/fabrics with a single click, also the user can then render all of the colorways to a folder with a single click. We're using the C++ SDK for achieving this.
It is basically working now, but I have 2 Questions:
1. For changing the color of a fabric we export the jfab (FABRIC_API->ExportFabric), change the color value in the jfab and then import it back using FABRIC_API->ChangeFabricWithJson(). My question is: Is this the intended way to do this or is there an easier way to change colors of a fabric via API?
2. When trying to use FABRIC_API->ExportFabric() with a CLO-SET fabric we get an error:
This fabric has been downloaded from CLO-SET or CLOSET CONNECT, which can't be exported to Json Fabric(.json)
Is there anything we can do to get rid of that error?
Thanks a lot in advance for answering these questions!
And please let me know if there's an easier way to achieve our described task which we might not be aware of. :)
Best wishes, Phil
Comentários