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
    • Login

    Launch tool plugin from command plugin

    SDK Help
    0
    5
    436
    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

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

      On 08/07/2003 at 22:08, xxxxxxxx wrote:

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

      ---------
      Is it possible to launch a tool plugin from a command plugin?

      i.e. the commanddata plugin should execute a small ammount of code internally that changes the scene and then it should launch the tooldata plugin for the user to edit the scene in it's new state.

      the commanddata plugins and the tooldata plugin are all part of the same project/module, linked together.

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

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

        On 13/07/2003 at 08:08, xxxxxxxx wrote:

        You can use the last one of these core messages:

            
            
             BaseContainer msg;
            
            
            
            
            #define COREMSG_CINEMA_GETCOMMANDNAME    200000033
            
            
            
            
             msg = BaseContainer(COREMSG_CINEMA_GETCOMMANDNAME);  
             msg.SetLong(COREMSG_CINEMA_GETCOMMANDNAME, id);  
             String name = SendCoreMessage(COREMSG_CINEMA, msg, 0).GetString();  
               
            #define COREMSG_CINEMA_GETCOMMANDENABLED  200000035  
               
             msg = BaseContainer(COREMSG_CINEMA_GETCOMMANDENABLED);  
             msg.SetLong(COREMSG_CINEMA_GETCOMMANDENABLED, id);  
             Bool enabled = SendCoreMessage(COREMSG_CINEMA, msg, 0).GetLong();  
               
            #define COREMSG_CINEMA_EXECUTEEDITORCOMMAND 200000023  
               
             msg = BaseContainer(COREMSG_CINEMA_EXECUTEEDITORCOMMAND);  
             msg.SetLong(COREMSG_CINEMA_EXECUTEEDITORCOMMAND, id);  
             Bool result = SendCoreMessage(COREMSG_CINEMA, msg, 0).GetLong();
        
        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

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

          On 13/07/2003 at 09:04, xxxxxxxx wrote:

          or you use doc->SetAction(PLUGINID); 🙂
          Best
          Samir

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

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

            On 13/07/2003 at 11:19, xxxxxxxx wrote:

            Forgot about that. But the nice thing with these commands is that they work with C4D commands as well. (I think someone asked about this in the past.)

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

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

              On 14/07/2003 at 03:10, xxxxxxxx wrote:

              ah i see, thanks then.

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