[Closed] Select Change Handler
Hello,
I just realized that in one of my scripts, when using the,
when select selection changes id:#blah do
my function inside the change handler is called twice, but only when I select the original starting object while the handler is active. So if I have a Box selected, and run the handler, and then I click anything else, it runs once per other object selected, but if I select the starting mesh, it runs twice…
Is there anyway to stop this? Its especially bad in my script in that case, because sometimes I need to generate thousands of objects when you change your selection, and if its doing it twice for a certain object, that is very bad…
Thanks!
So creating a temp object to use in the handler, then delete it later seems to work fine.
But I’m still curious if there is another way to fix that?
Damnit… my idea didn’t quite work… Now sub-object selections aren’t detected, which makes sense… Its not a huge deal, but is annoying/disappointing.