On 14/12/2013 at 00:20, xxxxxxxx wrote:
Cinema 4D Version: 13,14,15
Platform: Windows ;
Language(s) : C++ ;
While I have now written C++ tag plugins for 6 months, I am a total beginner when it comes to the timeline. So I hope someone can lead me in the right direction, with my beginner questions:
- What on earth does the "BlinkerTrack" CTrackPlugin in the SDK really do? I can do a "Add special tracks" and then add the C++ SDK Blinker to the timeline. But if it is making tea for me, changing the gearbox oil in C4D or just sits there idle - I have no idea. I have no clue. I change the value returned by GetHeight() to something above 0, and then I can expand the track, but still - have no clue.
Now to the real important questions:
Markers: I can add timeline markers easily using AddMarker() in lib_tlmarker.h. But is seems impossible later to detect at what position the marker is, if the user has moved it.
2) Can I detect the marker's position?
- Can I add my own kind of markers, i.e. is it allowed to draw on the timeline? What I would like is small dots of a certain color, at specific frames.
- Can I draw between keyframes in the keyframe part on the timeline? For example, I have two keyframes, and I want to indicate that special processing takes place between two keyframes by painting this part with a special color. Then the user can see that between let us say frame 10 and frame 20, special processing takes place, whereas between frame 20 and frame 30 nothing happens. So here the default grey color will be used.
- And while we are at it, can I draw a rectangle in the description part of the Attributes manager?
Like here, I made this in Photoshop. Of course I will draw it in the description of my own plugin, but you get the idea. I want to paint a rectangle (or whatever) to indicate a special condition.