Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Gui advice

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 314 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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:

      User Information:
      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.
      Keith

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 17/12/2008 at 01:34, xxxxxxxx wrote:

        (it would actually be cool if there was a single "range" type gadget, that would let the user set both start and end frames with one gadget)

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 17/12/2008 at 02:03, xxxxxxxx wrote:

          As usual after posting... I just found the AsyncTest SDK example and it looks like it might have the answers I'm looking for.
          If not, I'll be back :).

          1 Reply Last reply Reply Quote 0
          • First post
            Last post