@teknow @briand
Alright chaps, after much testing and researching I think I've worked it out...
The issue stems from the way the way python reads the "\" in the filepath, "\" actually terminates the string and multiple ones confuses the matter.
To resolve this, it couldn't be simpler - add a single "r" in front of the string (I kid you not!) This makes sure python reads the string as raw, so it doesn't process any characters between the " " as anything but readable characters:
import c4d
#Merges a specified C4D scene file into the current Scene
#Change 'fn' to your desired filepath
def main():
fn = r'C:\Users\Administrator\AppData\Roaming\MAXON\CINEMA 4D R17_8DE13DAD\library\scripts\brasco_mt\Quad_Discs.c4d'
c4d.documents.MergeDocument(doc, fn, c4d.SCENEFILTER_OBJECTS | c4d.SCENEFILTER_MATERIALS | c4d.SCENEFILTER_DIALOGSALLOWED | c4d.SCENEFILTER_MERGESCENE)
c4d.EventAdd()
if __name__=='__main__':
main()
I've once again updated the zip link - can you please let me know if that worked?
I realise I've derailed the modelling thread into a scripting sideshow but I learned something new :)
cheers
brasc