View Full Version : GetTime() example does not working in new version.
madbut 11-13-2010, 07:54 AM http://s13.radikal.ru/i186/1011/71/d1cccd441886t.jpg (http://radikal.ru/F/s13.radikal.ru/i186/1011/71/d1cccd441886.jpg.html)
The code in the coffee node is:
main()
{
Output1 = obj->GetFirstTrack()->GetFirstSequence()->GetFirstKey()->GetTime()->GetFrame(25);
}
This example is working in c4d v9.603 but not working in c4d 11.5 :( What is wrong?
|
|
Scott Ayers
11-13-2010, 04:34 PM
Maxon basically killed off Coffee interaction for the timeline in the R10 versions. Then they re-wrote the functions starting in R11.
Here's the new version of your code: main()
{
Output1 = obj->GetFirstCTrack()->GetCurve()->GetKey(0)->GetTime()->GetFrame(25);
}
You can find more info about the new functions in the R12 Coffee SDK. But the info in there is very sparse at best.
I'm going to be releasing my new CoffeeBible soon. And it will have tons of time line examples in it. So keep an eye out here for that.
-ScottA
madbut
11-13-2010, 06:57 PM
Thank you very much!
I agree that coffee manual is not perfect unfortunately
CGTalk Moderation
11-13-2010, 06:58 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.