Firstly,
Code: Select all
OS: Linux Mint 21 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31700 (Git)
Build type: Unknown
Branch: master
Hash: 0a8ea55509c2a03c18ec7d95100b765c59b19560
Python 3.10.6, Qt 5.15.3, Coin 4.0.1, Vtk 9.1.0, OCC 7.5.1
Locale: English/United States (en_US)
Installed mods:
* toSketch 1.0.1
If I select the "Create image plane" icon, I get the following in the python console :
Code: Select all
>>> ### Begin command Std_Workbench
>>> Gui.activateWorkbench("ImageWorkbench")
>>> ### End command Std_Workbench
>>> ### Begin command Image_CreateImagePlane
>>> App.activeDocument().addObject('Image::ImagePlane','ImagePlane003')
>>> App.activeDocument().ImagePlane003.ImageFile = '/home/matt/Downloads/3D_design_files/Pier/Sproul005 adjusted.png'
>>> App.activeDocument().ImagePlane003.XSize = 21.844044
>>> App.activeDocument().ImagePlane003.YSize = 30.723478
>>> App.activeDocument().ImagePlane003.Placement = App.Placement(App.Vector(0.000000,0.000000,0.000000),App.Rotation(0.500000,0.500000,0.500000,0.500000))
>>> App.activeDocument().ImagePlane003.ViewObject.ShapeColor=(1.,1.,1.)
>>> Gui.SendMsgToActiveView('ViewFit')
>>> ### End command Image_CreateImagePlane
>>> ### Begin command Image_Open
>>> import Image, ImageGui
>>> ImageGui.open("/home/matt/Downloads/3D_design_files/Pier/Sproul005 adjusted.png","utf-8")
>>> ### End command Image_Open
Code: Select all
QFSFileEngine::open: No file name specified
Am I doing something wrong or is this a bug? If the former, can someone point out how I fix the mistake?
Many thanks,
mconsidine