Copying and Pasting Sequences
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/10/2004 at 13:56, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform:
Language(s) : C++ ;---------
Hi all
I'm a total newbie to plugin programming. I wrote a plugin for trueSpace in VC++ that copies and pastes sequences at frame numbers supplied in an array. These frame numbers come from midi music data. The upshot is that I can drive an animation from midi music like Animusic.
Anyway the time has come to do it in C4D. Problem is I can't follow the SDK docs. I want to manually select a sequence in the timeline and then press a button in my plugin and this copies and pastes the sequence. I've got all the code for the dialog box and the midi part. Any help with some examples of how to copy and paste a sequence would be greatly appreciated. I had it in trueSpace that the pasted sequences all became part of one super sequence (or clip as they were called). This is not absolutely essential but got around the problem of overlapping sequences where the note being played quickly repeated itself e.g. a guitar string is still vibrating from the last time it was played.
Thanks
Nigel / 3DKiwi
[email protected] -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/10/2004 at 08:48, xxxxxxxx wrote:
There equivalence of copy/paste in plugin code is GetClone(). Find out which sequence is active (check the BIT_AAMAN bit), iterate through its keys, clone them, call AutoAddSequence() on the new time, then insert the cloned keys.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/10/2004 at 10:46, xxxxxxxx wrote:
Thanks very much.
Nigel