how could I change SubShapeBinder Support with python (in a Part container)?
I have an object contained in a Part which is contained in a second Part container.
I would like to assign to an existing SubShapeBinder to this object selecting the SubShapeBinder and the object itself, and then launching a python command.
What I miss is the way to assign the right 'full parent name' to SubShapeBinder... like in the sample 'Part.Part001.Box.'
Here a code which gives me the wrong Support
Code: Select all
import FreeCAD, FreeCADGui
sel=FreeCADGui.Selection.getSelection()
binder=sel[0]
obj2link = sel[1]
binder.Support = [obj2link]
thanx in advance