This is effectively emulating a mouse click, I guess, without invoking the action associated with the mouse click.
Code: Select all
myObject, mySubObject = mainWindow.objectAt(x, y
Code: Select all
myObject, mySubObject = mainWindow.objectAt(x, y
Code: Select all
pos = Gui.ActiveDocument.ActiveView.getCursorPos()
Gui.ActiveDocument.ActiveView.getObjectInfo(pos)
Code: Select all
{'x': -0.8382894992, 'y': 0.164370581, 'z': 0.0, 'Document': 'Unnamed', 'Object': 'Extrude', 'Component': 'Face1'}
Perfect! Merci monsieur!Chris_G wrote: ↑Sun Oct 13, 2019 4:24 pmreturns something like :Code: Select all
pos = Gui.ActiveDocument.ActiveView.getCursorPos() Gui.ActiveDocument.ActiveView.getObjectInfo(pos)
Code: Select all
{'x': -0.8382894992, 'y': 0.164370581, 'z': 0.0, 'Document': 'Unnamed', 'Object': 'Extrude', 'Component': 'Face1'}
Further discussion will be followed by this link.