On 16/03/2016 at 02:53, xxxxxxxx wrote:
Hi!
I'm creating a very simple plug-in that does the following:
1. Creates a window/dialog with 4 file URL fields (text field + button) and import button.
2. The user selects 4 .c4d files from the /res folder
3. The user hits the import button and the script merges the .c4d files into the current document.
I come from Maya/Python programming, but I'm very new to C4D/Python. I check the C++ and Py docs before asking as well.
Question #01: What do I pass this command?
c4d.documents.MergeDocument
(doc, name, loadflags[, thread])
What do I pass to "doc"?
I keep my plug-in in the Library->Pref->etc. folder on OSX. How do I get that URL and pass it to "name"?
I've seen a couple scripts that kind of do this but hopefully after I figure out this simple bit I'll be able to hack away at the rest.
Thank you for your time.
Cheers,
Matt