I’m trying to access the Active Point count of the currently selected subtool. I’d also like to access the Total Point count for the tool. How do I do this? Seems like an easy thing to do but I’m obviously missing something
I tried this with no luck …
I also tried using these commands in various ways with no luck.
I suspect Mesh3DGet is my best chance. In my code below, when I use Mesh3DGet it returns 0 indicating that the command executed successfully. But it doesn’t tell me the actual Point count so I’m not sure what it’s actually doing. I’m unclear on how to actually access the Active Points and put it in a variable. The Command Reference says [Mesh3DGet,0] will return the number of vertices. Here’s one of the things I’ve tried … (am I barking up the wrong tree?)
//Create button[IButton,"test","test", [IFreeze, [IShowActions,0] //Select top subtool [IPress,Tool:Subtool:Subtool 0] //put subtool Active Points in a variable [VarDef,pointCount,0] [VarSet,pointCount,[Mesh3DGet,0]] //show point count [Note,pointCount,,5] ]//end freeze [IShowActions,-1] ]//end button