On 14/11/2016 at 06:27, xxxxxxxx wrote:
I have defined my own library (content browser) and added some scenes to it.
Now I am trying to merge these scenes using following code:
import c4d, os
from c4d import gui
#Welcome to the world of Python
def main() :
userLib = c4d.storage.GeGetStartupWritePath()
fn = os.path.join(userLib, "library", "browser", "own stuff.lib4d", "spheres test scenes.c4d")
print "fn: ", fn
print c4d.documents.MergeDocument(doc,fn, 0)
c4d.EventAdd()
print "Done."
if __name__=='__main__':
main()
The filename given for the merge seems correct:
fn: C:\Users\Pim\AppData\Roaming\MAXON\CINEMA 4D R17_8DE13DAD\library\browser\own stuff.lib4d\spheres test scenes.c4d
The MergeDocument always return false, what am I doing wrong?
-Pim