Pointcount ?
-
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 ? -
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);
} -
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.)