@m_magalhaes Oh, really? Thx so much!
I have tried c4d.documents.GetAllAssets method to list assets, it works well in C4D Gui.
Then I tried with c4dpy, it was not working.
As c4d.LoadFile method is not supported in c4dpy, so I use c4d.LoadDocument method instead. Then GetAllAssets method returns an empty list.
How can I get the same result in c4dpy?
Here is what I've done in c4dpy:
wow, awesome. It works!
thank you so much.
What I'm actually doing is making a python script to load render settings such as frame range, resolutions, cameras should be rendered from c4d files.
cameras should be rendered
Is there any shortcut to figure it out?
Hi @ferdinand ，
Thx so much for your help. But I still I still haven't succeeded to load the file.
I tried LoadDocument method like this, but it returns None.
>>> d = documents.LoadDocument(
c4d.SCENEFILTER_OBJECTS | c4d.SCENEFILTER_MATERIALS | c4d.SCENEFILTER_MERGESCENE,
Am I using the loadflags in wrong way?
What I was doing is just open a c4d file via python. The file is so simple as there is only a cube.
It works in C4D Console,
But not working in c4dpy.
Am I missing something? Pls give me a hint.