THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/12/2008 at 01:30, xxxxxxxx wrote:
Cinema 4D Version: R10+
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
I'm working on an export plugin that includes animations (multiple animation clips, for ide, walk, run, punch, fall, flip, etc). Of course in R10, there are no animation 'clips', just one timeline, so the individual clips are just strung together, end-to-end along the timeline.
So, given the above, my plan is to create a 'Animation Clip' Tag that will be attached to the mesh that my eport plugin can then read to determine how to break the timeline up into individual animation clips. The data that I'll need is:
1. name of animation clip
2. start frame (on timeline)
3. end frame
...ok? so, here's the problem... the interface to accept and display the above data needs to be 'dynamic' - in other words, I don't know ahead of time if there's 1 animation clip or 100, so the user needs to be able to click on an "Add" button to create a new entry as well as "Delete" existing entries.
Here is a conceptual mock-up:
...I just show an "idle" and "walk" entries, to indicate that there may be (will be) more than one set of data.
What I'm looking for now is advice on how to go about this, using existing Gui code of the SDK.
- Since there could be dozens of entries, the interface needs to be inside a scrollable list-box.
- The "SimpleListView" class does not (as far as I can tell) support the EDITSLIDER gadget type (or any number editing types).
- I don't think (?) I can create such an editor in my Tag's Description (attribute manager), because of the dynamic nature (I think GetDDescription() is just called at startup?)
- Because of the above, I assume I'll need to do this in a GeDialog, but even with that I'm still lost on how to represent the gadgets I want to use inside a scrollable window.
...I'm sure there's a solution, but I just don't know where to look atm. Any help or suggestions would be appreciated.