THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/09/2010 at 18:25, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform: Windows ;
Language(s) : C++ ;
---------
I'm trying to get some basic animation info from Melange, but I've been having difficulties.
How can I get the start/end frame?
The BaseDocument doesn't have GetMinTime() or GetMaxTime(), unlike the C++ SDK, and the docpref member is private.
// doesn't work
LONG start_frame = c4ddoc.docpref.GetMinTime().GetFrame(c4ddoc.GetFps());
LONG end_frame = c4ddoc.docpref.GetMaxTime().GetFrame(c4ddoc.GetFps());
There are no methods in BaseDocument that explicitly return docpref, so I have no idea how to access it.