Thanks so much for your help. That’s exactly what I was looking for.
I knew there must have been a simple way to replicate the keyboard Rhino command “_PointsOff”, For the life of me I just couldn’t find it. I’m not sure how I missed it in my Google hunts
I originally thought of doing as you suggested for the alternate solution and use the object ids of the previously selected objects to turn them off, but I thought this might lead to some undesired behaviour if the script wasn’t used to turn points on in the first place. Or check the status of every object in the scene (even worse idea). The solution you provided is exactly what I wanted.
I better finish reading the Rhino Python Primer…
Edit: to any other noob who wants to assign this to a hotkey…
! _-RunPythonScript “C:\Users*user*\Rhino*user*\scripts\togglePoints.py”
togglePoints.py (305 Bytes)
PS Generally unrelated to scripting and tangentially related to the script above (I thought someone out there might think the following is useful).
I bought a Space Navigator (SN). Since it requires one to keep on hand on the mouse and one hand on the SN, it leaves me one hand short for the keyboard. Going back and forth between keyboard is a bit tedious, develops the bad habit of defaulting using icons too much and therefore adding too many mouse miles. 3Dconnexion offers higher end devices with programmable buttons but at a higher cost. I wanted to save a bit of money so I purchased a Logitech G600 mouse with 20 programmable buttons. It sounds like a lot of buttons but I don’t want to waste any space using two buttons for what can be accomplished with one (hence the excuse to bone up on python scripting, and the script above). So I’m loading it up with the hotkeys, macros, and scripts that best suit my workflow. So far its been great. For example, just having a few simple keys on the mouse like Ctrl, Alt, Shift, Ctrl+Shift, '_-Gumball, _Sweep2, ! _Split _Pause _Isocurve, Undo/ Redo (on the mousewheel tilt), etc has been very handy. (By default it comes set up as a number pad which was a pretty good start to begin with).