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

    script log functionality / grabbing cmd id stream

    SDK Help
    0
    4
    386
    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
      Helper
      last edited by

      On 05/05/2013 at 21:00, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R14 
      Platform:   Windows  ;   Mac OSX  ; 
      Language(s) :     C++  ;   PYTHON  ;

      ---------
      hi,

      i need to replicate the c4d script log functionality or get hold of that ID stream 
      generated by the script log. bluntly said i have no idea where to start. there are 
      a bunch of command related methods in the c4d namespace in python, but none 
      of them is for polling constantly the last command id. also the coremessage stream 
      does not seem to include the data i am looking for (although i did not look into the 
      pyobjects contained in the data bc yet).

      so where do i have to look ? is it possible ? are core messages the solution ? please
      also note that i did deliberately put this into the cpp section, if there is only a cpp
      solution for that problem. thanks for reading,

      happy rendering,
      ferdinand

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

        On 06/05/2013 at 14:26, xxxxxxxx wrote:

        i could not find anything useful in the cpyobjects either. for raising the extrude tool i do get.

           * 200000073
           * 689
        1298360625 ######
           * None
        1298360626 ######
           * None
           * -826267
           * 689
        1298360625 ######
           * None
        1298360626 ######
           * None
           * 1026901
           * 689
        1298360625 ######
           * None
        1298360626 ######
           * None
           * 604
           * 689
        1298360625 ######
           * None
        1298360626 ######
           * None
           * 1018490
           * 690
        1298360625 ######
           * None
        1298360626 ######
           * None
           * 1018484
           * 690
        1298360625 ######
           * None
        1298360626 ######
           * None
           * 1685218156
           * 691
        1298360625 ######
           * None
        1298360626 ######
           * None
        

        could someone point me into the correct direction please 🙂

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

          On 08/05/2014 at 14:01, xxxxxxxx wrote:

          Yeah, I'd be curious to know this as well. I'm trying to detect Undo/Redo presses so that I know when it's appropriate to update my dialog from data stored in a container.

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

            On 09/05/2014 at 02:49, xxxxxxxx wrote:

            The best you can get is listening to the MSG_DOCUMENTINFO message. There's pretty much info
            you can get from it. Afaik, it's only sent to nodes in the current document however, so a MessageData
            plugin would not be enough.

            Here[URL-REMOVED]'s the C++ documentation for the DocumentInfoData that is passed for this message. I'm not sure
            if the data is even wrapped for Python, need to check this out.

            -Niklas


            [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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