Only thing I can think of is that in the listener when I clicked the project folder I noticed that it also printed macros.run "Tools" "SetProjectFolder"
So I wonder if that is behind the scenes running as well and maybe that is producing a second “click” essentially?
Hello, thanks you for your anwser, yeah I had to make that workaround too, but it’s definetly taking more steps, and when you are working on big scenes, you wants to remove any extra steps, so that why I wanted to know if it was possible to get this event fired once
Just out of interest what if you try set the callback directly in maxscript - I’ve never used that callback specifically before but no other callback has fired twice that I have done in maxscript directly.
You don’t need to create a Maxscript side reference to your Python function and pass an executing string "pcb()" to the addScript call. Just pass a direct reference to the Python function you defined.
eg