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

    Pointcount ?

    SDK Help
    0
    3
    287
    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 18/01/2004 at 05:41, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.100 
      Platform:      
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hey,
      im making a new plugin, it's a modeling tool to align point on a sertain axis.
      But it has to count the current points that are selected, how do i do this ?

      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 18/01/2004 at 06:47, xxxxxxxx wrote:

        This is what i have now, it's in the plugin menu but it's unchecked, how can i make it work sao that i click it it actually does something?
         
        class StraightPlugin : MenuPlugin {
         public : StraightPlugin();
            GetID();
            GetName();
            GetState();
            GetHelp();
            Execute(doc);
        }
        StraightPlugin::StraightPlugin(){
         super();
        }
        StraightPlugin::GetID(){
         return 1015110;
        }
        StraightPlugin::GetName(){
         return "Straighten";
        }
        StraightPlugin::GetState(){
         var doc = GetActiveDocument();
         CMD_ENABLED;
         CMD_CHECKED;
         
        }
        StraightPlugin::GetHelp(){
         return "Straighten Control";
        }
        StraightPlugin::Execute(doc){
        }
        main (){
         Register(StraightPlugin);
        }

        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 19/01/2004 at 15:15, xxxxxxxx wrote:

          Return CMD_ENABLED | CMD_CHECKED from GetState(). These are just flags, not commands. Like this:

              
              
              StraightPlugin::GetState(){  
               return CMD_ENABLED | CMD_CHECKED;  
              }
          

          Then add the relevant code to the Execute() function. (See BaseSelect in the docs.)

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