As a part of an automated system, I load required materials and assets, when preparing the first version of a scene, from the Content Browser (Cinema 4D R23), using simple Python code (below, for materials)
def LoadMaterial(location, name): doc = c4d.documents.GetActiveDocument() location = "preset://" + location + "/" + name status = c4d.documents.MergeDocument(doc, location, c4d.SCENEFILTER_MATERIALS) return status
As I understand the Content Browser have been replaced by Asset Browser, which looks much more powerful and I can't wait to start using it I can import all the assets from lib4d into R25 and access them manually, but I really need is the ability to load the assets from a code, as I do in r23. What's the best way of doing that? Can you provide me with a code snippet?
I basically want to have the same ability as in R23, wherein r25 I can pass DB name (or full path), together with object/mat name, and be able to download it to the scene. Also - is there a way to list all versions of an object or materials, and then choose one to download?