I want to pass the python object from the selection in the tree view to a command since I want to use some methods in the selected object.
Code: Select all
def Activated(self):
sel=FreeCADGui.Selection.getSelection()
try :
ImagePlane.makeImagePlane(sel[0]) #Trying to get a reference to the python object
except IndexError:
return