Macro Screen Wiki/en

Description
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.





Definition

 * 1) (Default)
 * 1) (Default)

Format image

 * 1) Length (Default: 600 px)
 * 2) Height (Default: 400 px)

Window

 * : The complete FreeCAD window
 * : The 3D view of FreeCAD

Background Color

 * 1) (Default)

Command

 * Docked window
 * Fly window
 * Save the image ex: (the _000 is incremented with each new image)
 * After saving the first image, press this button to save the next image with the same name. The images saved is incremented ex:, , , [[Image:Macro_Screen_Wiki_ToolBar_04_4b.png]] etc...
 * Save one new image without change the counter
 * Access to the rotation menu (the title of the section "Image options" change to "Rotation options"
 * ___Screen_Wiki end__________
 * Reduce the image window in a toolBar, the option is not available in this mode
 * 1) [[Image:Macro_Screen_Wiki_ToolBar_01.png]][[Image:Macro_Screen_Wiki_ToolBar_02.png]][[Image:Macro_Screen_Wiki_ToolBar_03.png]][[Image:Macro_Screen_Wiki_ToolBar_04.png]]
 * 2) The button Flip/Flop Y/N the mini toolBar [[Image:Macro_Screen_Wiki_ToolBar_Mini.png]]

Rotation on

 * The complete view is rotated
 * The object selected is rotated

Axis

 * Rotation on X axis
 * Rotation on Y axis
 * Rotation on Z axis
 * Rotation on Direction.
 * To use this option: select first the object, then afterwards select the wire guideline. If is checked and no wire is selected the direction is

Point Rotation BoundBox

 * 1) Object: Rotation on the BoundBox center of the object selected
 * 2) Sub Object: Rotation on the BoundBox center of the sub object selected

Angles

 * Angle Rotation
 * Decrease the value by 10 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
 * : Value: Angle of the starting rotation
 * Increase the value by 10 degrees
 * Degrees Angle End Rotation
 * Decrease the value by 10 degrees
 * Value: Angle of the end rotation
 * Increase the value by 10 degrees

Command

 * Delay between 2 images
 * : If there is a problem saving images due to speed, then add a delay of X seconds.
 * Checked, this option reverses the rotation 3D view or Object
 * 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

Examples










Versions
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