THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/10/2003 at 13:02, xxxxxxxx wrote:
Cinema 4D Version: 8.207
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
I'm beginner - and this is my first coffee project. Fort the sake of learning, I'm trying to put together an expression that will generate a PLE track and sequence for a "master" object and then generate PLA keyframes using point data from a sequence of "morph" objects - one for every keyframe.
As for the first part - I managed to put it together without problems - my expression generates a PLA track, sequence and keyframes. The only problem is that the generates keyframes don't work. When I start the expression, the "master" object start changing rapidly (according to the "morph" data, received by the expression) and then it keeps the form, given to it by the last "morph" object in the sequence. It looks like the different in-between forms don't get recorded in the keyframes. When I hit PLAY button - the keyframes are there but the object doesn't change its shape...
My expression, after creating track and sequence and inserting them into an object, starts a loop. In the loop, it
(1) finds tha right "morph" object for the frame,
(2)extracts point data from it using GetPoints() and stores it into an array
(3)writes the array to the "master" object using SetPoints(array)
(4) creates a new PLA key
(5) creates a Time Object and sets the time into it
(6) inserts time into the PLA Key using SetTime(t)
(7) inserts the PLA key into the sequence using InsertKey()
Then it loops to next keyframe
What am I doing wrong?
Thanks for your patience,