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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    show Track in Timeline

    Scheduled Pinned Locked Moved PYTHON Development
    7 Posts 0 Posters 577 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

      On 27/07/2016 at 02:03, xxxxxxxx wrote:

      Hey,

      is it possible to show a track in the Timeline View -  from python

      Thanks
      Conner

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

        On 28/07/2016 at 04:15, xxxxxxxx wrote:

        Hi Conner,

        I'm sorry, I'm not aware of any means to achieve this. I will ask our developement, but don't want to raise hopes.

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

          On 28/07/2016 at 04:37, xxxxxxxx wrote:

          Hi Andreas,

          thanks for asking.

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

            On 01/08/2016 at 08:20, xxxxxxxx wrote:

            Hi Conner,

            I received feedback from development.
            Unfortunately no good news, there's no way to show single tracks in the timeline.
            For objects you could use this in C++ (unfortunately the message is not supported by Python, yet) :

            BaseSceneHook* const hook = doc->FindSceneHook(100004808); // BaseSceneHook from Newman
            AtomArray arr;
            doc->GetSelection(arr);
            if (hook)
              hook->Message(EVMSG_SHOWIN_TL, &arr);
            

            Edit: Added note on C++ code and EVMSG_SHOWIN_TL currently not usable in PYthon.

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

              On 03/08/2016 at 12:26, xxxxxxxx wrote:

              Hey Andreas,

              Thanks

              tried in python and crash ..

              doc = c4d.documents.GetActiveDocument()
                          hook = doc.FindSceneHook(100004808);
                          arr = node
                          if (hook) :
                              hook.Message(c4d.EVMSG_SHOWIN_TL, arr)
              
              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                On 03/08/2016 at 12:57, xxxxxxxx wrote:

                It won't work from Python unless its specifically supported by the SDK. 😐

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

                  On 04/08/2016 at 03:12, xxxxxxxx wrote:

                  Aaargh!
                  So sorry, by the time I received the answer from development I had totally forgotten, that we are on the Python side, here.
                  My fault!
                  And Niklas is right, this message would need to be supported by the Python SDK, but it isn't, yet.

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