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

    What information can I get out of msg, in Timer?

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 451 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 15/07/2012 at 11:44, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   13 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      If I define a Timer event on a dialog, when type of information can I get from the msg container that I get in Timer([BaseContainer] msg); ?

      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/07/2012 at 07:04, xxxxxxxx wrote:

        I don't do much COFFEE, so I'm not sure if you could do something similar to this or not...

          
          LONG id, i=0;  
          while (TRUE)  
          {  
              id = bc.GetIndexId(i++);  
              if (id==NOTOK) break;  
              GeData data = bc.GetData(id);  
              switch(data.GetType())  
              {  
                  case DA_NIL:            GePrint("id: "+LongToString(id)+" - DA_NIL");                break;  
                  case DA_VOID:            GePrint("id: "+LongToString(id)+" - DA_VOID");                break;  
                  case DA_LONG:            GePrint("id: "+LongToString(id)+" - DA_LONG");                break;  
                  case DA_REAL:            GePrint("id: "+LongToString(id)+" - DA_REAL");                break;  
                  case DA_TIME:            GePrint("id: "+LongToString(id)+" - DA_TIME");                break;  
                  case DA_VECTOR:            GePrint("id: "+LongToString(id)+" - DA_VECTOR");            break;  
                  case DA_MATRIX:            GePrint("id: "+LongToString(id)+" - DA_MATRIX");            break;  
                  case DA_LLONG:            GePrint("id: "+LongToString(id)+" - DA_LLONG");                break;  
                  case DA_BYTEARRAY:        GePrint("id: "+LongToString(id)+" - DA_BYTEARRAY");            break;  
                  case DA_STRING:            GePrint("id: "+LongToString(id)+" - DA_STRING ("+data.GetString()+")");                    break;  
                  case DA_FILENAME:        GePrint("id: "+LongToString(id)+" - DA_FILENAME ("+data.GetFilename().GetString()+")");    break;  
                  case DA_CONTAINER:        GePrint("id: "+LongToString(id)+" - DA_CONTAINER");            break;  
                  case DA_ALIASLINK:        GePrint("id: "+LongToString(id)+" - DA_ALIASLINK");            break;  
                  case DA_MARKER:            GePrint("id: "+LongToString(id)+" - DA_MARKER");            break;  
                  case DA_MISSINGPLUG:    GePrint("id: "+LongToString(id)+" - DA_MISSINGPLUG");        break;  
                  case DA_CUSTOMDATATYPE:    GePrint("id: "+LongToString(id)+" - DA_CUSTOMDATATYPE");    break;  
              }  
          }  
        

        ...of course that's a brute-force approach - hopefully support can give you a better answer.

        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/07/2012 at 07:44, xxxxxxxx wrote:

          Thank you Giblet.
          That will tell me what type of information is there. But it will not tell me what the information is about 😞
          Why isn't the msg from the Timer documented?

          Rui Batista

          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 18/07/2012 at 01:15, xxxxxxxx wrote:

            The msg container for GeDialog::Timer() is empty.

            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 18/07/2012 at 01:21, xxxxxxxx wrote:

              Weird. So, what is it good for? 😉

              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 18/07/2012 at 03:36, xxxxxxxx wrote:

                I assume Maxon added this parameter for possible extensions that might require this argument or information to be passed via a Container.

                -Nik

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