THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/08/2011 at 12:44, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10+
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;
---------
Howdy,
I'm using this code:
LONG fps = doc->GetFps();
LONG startFrame = (LONG)doc->GetUsedMinTime(NULL).GetFrame(Real(fps));
LONG endFrame = (LONG)doc->GetUsedMaxTime(NULL).GetFrame(Real(fps));
GePrint("startFrame = "+LongToString(startFrame));
GePrint("endFrame = "+LongToString(endFrame));
... to get the min and max animation key range of the document. It works fine except when there are no animation keys at all. Then it prints:
startFrame = 3000000
endFrame = -3000000
Are those the animation frame absolute limits of a document?
And, is it safe to assume so and use this code:
if(startFrame == 3000000 && endFrame == -3000000)
{
startFrame = 0;
endFrame = 0;
}
Adios,
Cactus Dan