Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    How to get only tracks displayed in timeline User Mode

    Cinema 4D SDK
    python 2024
    2
    3
    446
    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.
    • K
      kng_ito
      last edited by

      Hi,

      I would like to know how to check if CTrack is shown/hidden in User Mode of timeline.
      I usually use GeListNode.GetNBit() to check the status of CTrack on timeline, such as selected or hidden.
      NBIT_TL1_HIDE is the one for checking if the element is hidden on the main timeline, but not for tracks that are hidden on the User Mode timeline.

      Does anyone know of any way to do this?

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @kng_ito
        last edited by ferdinand

        Hey @kng_ito,

        Thank you for reaching out to us and please excuse the long waiting time. The subject had actually been assigned to @m_adam but he must have forgotten and now is on vacation.

        I had a brief look at your problem, figuring out which elements are displayed in user-mode in the timeline and which not. I think you have to approach the subject from the host, the BaseList2D, and not the tracks, i.e., you hide/show scene elements.

        From the looks of it, doing this is not possible, neither in Python nor in C++. Internally, the Dopesheet is using a type called IndividualModeElement which tracks a scene element with tracks when the Dopesheet is in User Mode. There seems to be no flag which ties this internal data to the outside world.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • K
          kng_ito
          last edited by

          Hi @ferdinand ,

          Thank you for clarifying. I needed a solution for my tool to determine which track/key is displayed&selected.
          But if I can't do that in user mode, I'll make sure my tools don't work when the timeline is in user mode.

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