callback that recognizes when I click onto a drawing element?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
callback that recognizes when I click onto a drawing element?
I want to select an element by clicking onto it, and have some kind of event callback recognize that I clicked on that object. Anything in the Python API that does that?
Re: callback that recognizes when I click onto a drawing element?
You probably can use a selection observer. You can find some very useful code snippets here:
https://wiki.freecadweb.org/Code_snippets
I had some problems with addEventCallback, so probably you should prefer addEventCallbackPivy; but that could be related to my low coding skills
follow my experiments on BIM modelling for architecture design
Re: callback that recognizes when I click onto a drawing element?
Ok, thanks for this. I'll check it out.carlopav wrote: ↑Wed Apr 08, 2020 8:59 pmYou probably can use a selection observer. You can find some very useful code snippets here:
https://wiki.freecadweb.org/Code_snippets
I had some problems with addEventCallback, so probably you should prefer addEventCallbackPivy; but that could be related to my low coding skills