On 19/05/2017 at 09:47, xxxxxxxx wrote:
I'm working on a script to merge a file into my scene. I have polygon objects with materials assigned to them, but when I import using SCENEFILTER_OBJECTS (flag 1), it only imports the objects, not the materials. The SDK says it should import the objects "and associated items, such as materials used". Am I missing something?
Here's what I'm using:
import c4d
from c4d import gui
#Welcome to the world of Python
resourceFile="D:[***]\Interior.c4d"
def main() :
c4d.documents.MergeDocument(doc, resourceFile, 1)
c4d.EventAdd()