THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/05/2010 at 06:41, xxxxxxxx wrote:
Cinema 4D Version: R10+
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
Is it possible to do batch file format imports without having to write your own import filter?
I tried the MergeDocument() function but it doesn't work, and there doesn't seem to be any file format flags available for it like the SaveDocument() function.
On 03/05/2010 at 06:45, xxxxxxxx wrote:
OK, nevermind. It seems the flags that are listed for the SaveDocument() function also work for the MergeDocument() function. But it doesn't say so in the SDK documentation.
On 03/05/2010 at 07:05, xxxxxxxx wrote:
Ehm, both LoadDocument() and MergeDocument() and all of the flags are documented in the SDK in the baseDocument class?
On 03/05/2010 at 07:22, xxxxxxxx wrote:
Yes, I have it working now.
But, it doesn't say specifically in the R10 SDK documentation that you can use the "FORMAT_Constants" with LoadDocument() and MergeDocument(). It only lists the flags:
... and it is left up to the reader to assume that the "FORMAT_Constants" flags can also be used. Assuming is something that I'm not very good at doing.
On 10/05/2010 at 02:00, xxxxxxxx wrote:
It doesn't hurt to take a look at newer SDK versions, even if you're developing with R10.
Often the documentation is simply more complete for features that were introduced earlier.
On 10/05/2010 at 06:27, xxxxxxxx wrote:
Thanks, that's good advice.
Although, in this particular case, the R11.0 and R11.5 SDK documentation for MergeDocument() are identical to the R10 SDK documentation:
You can see that it still does not specifically state that the "FORMAT_Constants" can also be used in the "loadflags" parameter.
And yes, in all three of the SDK versions documentation, the "FORMAT_Constants" are mentioned under SaveDocument() to be used with its "format" parameter, and not its "saveflags" parameter, which in my way of thinking, the "saveflags" parameter associates with the "loadflags" parameter in the MergeDocument() function:
But no matter, I have it figured out now, and if you look at my 2 original posts, it only took 4 minutes after the first post for me to try using the "FORMAT_Constants" in MergeDocument(), which was somewhat of a lucky guess. Had I not given that a try, I might still be waiting for someone to point me in the right direction.