VisibilityTrack & VisibilityKey pbm
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/06/2004 at 04:31, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 7.303
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;---------
Hi All,
I am trying to create a visibilitytrack & keys to animate one of my objects. I used the following COFFEE code. But couldnt get the output. I can see only the track, there are no keys... What could be the problem? Looking for help...
My understanding is create the track first, then sequence next, then key with time values. Am correct to say this?obj=doc->GetFirstObject(); objTrack = new(VisibilityTrack); // CREATE VISIBILITY TRACK obj->InsertTrack(objTrack); objTrack = obj->GetFirstTrack(); objSequence = new(VisibilitySequence); // CREATE SEQUENCE objTrack->InsertSequence(objSequence); objSequence=objTrack->GetFirstSequence(); // ************* TO CREATE FIRST KEY ***************** objKey = new(VisibilityKey); conKey = objKey->GetContainer(); conKey->SetData(VISIBILITYKEY_VALUE,0); objKey->SetContainer(conKey); objTime = new(BaseTime); objTime->SetSecond(0); objKey->SetTime(objTime); objSequence->InsertKey(objKey); // ************* TO CREATE END KEY ***************** objKey = new(VisibilityKey); conKey = objKey->GetContainer(); conKey->SetData(VISIBILITYKEY_VALUE,1); objKey->SetContainer(conKey); objTime = new(BaseTime); objTime->SetSecond(30); objKey->SetTime(objTime); objSequence->InsertKey(objKey);
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/06/2004 at 01:46, xxxxxxxx wrote:
I have managed to find out guys. Its working well now.