THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/05/2008 at 14:23, xxxxxxxx wrote:
Cinema 4D Version: 9.6
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
I would like to use COFFEE to load a scene 'docX' and merge it with the currently open scene. So I load the scene 'docX' with 'LoadDocument', clone the objects and insert them to the other scene and delete 'docX' with 'KillDocument'. This all works fine and has indeed already been discussed in several threads here.
Now the only niggle: Let's say I have two documents open, 'docA' and 'docB'. 'docA' is my currently active document. I now run my script, 'docX' gets loaded, everything is copied into 'docA' and 'docX' is deleted. Now for some reasons 'docB' is the active document, instead of 'docA'! Of course this is confusing for the user and I would like to avoid that.
So my question: Is there a way to set the active document with COFFEE? I've seen that in the C++ SDK there's a 'SetActiveDocument()' function, but I cannot find something similar in the COFFEE documents.
Thanks for your help.