{{Macro
|Name=Macro Screen Wiki
|Icon=Macro_Screen_Wiki.png
|Description=Special macro for the Wiki Worker. This macro allows to save the 3D view in the desired format. The 3D view or the full 3D window of FreeCAD takes the desired dimensions. A rotation of the selected object or of the 3D view is possible to give a rotation angle the number of images is calculated automatically it is possible to give a departure angle and an arrival angle. You must use another Gimp example program to assemble the images and create the animated file.
|Author=Mario52
|Version=00.05
|Date=2021/05/21
|FCVersion=0.19
|Download=Download the [https://wiki.freecadweb.org/images/f/f5/Macro_Screen_Wiki.png Macro_Screen_Wiki.png] image and paste it in the same directory of the macro
|SeeAlso= Macro_Copy3DViewToClipboard
Macro_Snip
}}
This macro allows the user save the 3D view in a desired format. The 3D view or the full 3D window of FreeCAD takes the desired dimensions. A rotation of the selected object or of the 3D view is possible to give a rotation angle the number of images is calculated automatically it is possible to give a departure angle and an arrival angle. You must use another Gimp example program to assemble the images and create the animated file.
Macro Screen Wiki Image and configuration window
Macro Screen Wiki Rotation window
-
{{RadioButton|400x200}}
-
{{RadioButton|TRUE|600x400}}(Default)
-
{{RadioButton|1024x768}}
-
{{RadioButton|320x240 (QVGA)}}
-
{{RadioButton|320x480 (HVGA)}}
-
{{RadioButton|400x300}}
-
{{RadioButton|480x360}}
-
{{RadioButton|640x480 (VGA)}}
-
{{RadioButton|768x576 (PAL)}}
-
{{RadioButton|800x600 (SVGA)}}
-
{{RadioButton|960x720}}
-
{{RadioButton|1024x768 (XGA)}}
-
{{SpinBox|600 px}}Length (Default: 600 px)
-
{{SpinBox|400 px}}Height (Default: 400 px)
-
{{RadioButton|Window FC}}: The complete FreeCAD window
-
{{RadioButton|TRUE|Screen 3D}}: The 3D view of FreeCAD
-
{{RadioButton|TRUE|Current}}(Default)
-
{{RadioButton|Color}}
-
{{RadioButton|Transparent}}
-
Restore
-
Set Screen: Docked window
-
Tile Screen: Fly window
-
Save Image: Save the image ex: {{FileName|imageBox_000.png}} (the _000 is incremented with each new image)
-
Follow: After saving the first image, press this button to save the next image with the same name. The images saved is incremented ex: {{FileName|imageBox_001.png}}, {{FileName|imageBox_002.png}}, {{FileName|imageBox_003.png}},
etc...
-
New Image: Save one new image without change the counter
-
Rotation: Access to the rotation menu (the title of the section "Image options" change to "Rotation options"
-
Quit: ___Screen_Wiki end__________
-
ToolBar: Reduce the image window in a toolBar, the Rotation option is not available in this mode
-
{{RadioButton|3D View}}: The complete view is rotated
-
{{RadioButton|TRUE|Object}}: The object selected is rotated
:
{{RadioButton|TRUE| {{ColoredText||red|'''X'''}}}}: Rotation on X axis
:
{{RadioButton| {{ColoredText||Green|'''Y'''}}}}: Rotation on Y axis
:
{{RadioButton| {{ColoredText||Blue|'''Z'''}}}}: Rotation on Z axis
:
{{RadioButton| {{ColoredText||#995500|'''D'''}}}}: Rotation on Direction.
:\* To use this option: select first the object, then afterwards select the wire guideline. If {{RadioButton|TRUE|{{ColoredText||#995500|'''D'''}}}} is checked and no wire is selected the direction is `Vector(0, 0, 0)`
- Object: Rotation on the BoundBox center of the object selected
- Sub Object: Rotation on the BoundBox center of the sub object selected
- Angle Rotation
-
-: Decrease the value by 10 degrees
-
{{SpinBox|0 Degrees}}: Value
-
+: Increase the value by 10 degrees
- Number images: The number image saved with the values given is calculated (approximation + 1)
- Angle Begin Rotation
-
-: Decrease the value by 10 degrees
-
{{SpinBox|0 Degrees}}: Value: Angle of the starting rotation
-
+: Increase the value by 10 degrees
- Degrees Angle End Rotation
-
-: Decrease the value by 10 degrees
-
{{SpinBox|360 Degrees}}: Value: Angle of the end rotation
-
+: Increase the value by 10 degrees
- Delay between 2 images
-
{{SpinBox|0,00 Delay second}}: If there is a problem saving images due to speed, then add a delay of X seconds.
-
{{CheckBox|Reverse}}: Checked, this option reverses the rotation 3D view or Object
-
{{CheckBox|TRUE|Original position}}: This option restores the original position of the 3D View or the Object rotated. Instead fo the 3D view or the Object staying in the last position of the rotation.
-
Save the animation: Save the animation
*Captured screen with dimensions of 640px x 400px*
Same dimensions as the previous image, this one is captured as 'Tile Screen'.
Animation mode: Object selected and direction BoundBox center Object.
The images must be assembled with a 3rd party application to create an animated .gif
such as [https://daviesmediadesign.com/project/make-animated-gif-gimp/ GIMP] or [https://www.screentogif.com ScreenToGif]
Animation Object Direction SubObject selected.
The images must be assembled with a 3rd party application that creates an animated .gif
such as [https://daviesmediadesign.com/project/make-animated-gif-gimp/ GIMP] or [https://www.screentogif.com ScreenToGif]
The FreeCAD window resized. The dimension may be different from the definition (depending on the Widget, title bar etc... used.)
Version=00.05: 2021/05/21 : adding code in Save file section for Linux Mint QFileDialog ignore the extension. Only the Path+name is displayed
global switchQFileDialogMint
#### mint
if switchQFileDialogMint == True: #
Filter = Filter[Filter.find("."):Filter.find(")")]
SaveName = SaveName + Filter
#### mint
``` Version=00.04: 2021/01/13 : adding mini ToolBar
Version=0.03: 2020/10/30 : create a tool bar for the image and new button for unique image
Version=0.02: 2020/05/04 : correct bug color button (self.PB\_01\_Color obsolete)
Version=0.01: 2020/03/21
---
[documentation index](../README.md) > Macro Screen Wiki