Skip to content

Instantly share code, notes, and snippets.

@22degrees
22degrees / gist:66ac98247a09b94c095bbf74bfae5ea8
Last active October 5, 2025 19:37
This macro applies a consistent color scheme to all objects in the viewport. - FreeCAD - Ondsel ES - Macro
# -*- coding: utf-8 -*-
# This macro applies a consistent color scheme to all objects in the viewport.
# 05/10/2025
__title__ = "Colorize All Objects in the Viewport"
__author__ = "22degrees"
import FreeCAD as App
import FreeCADGui as Gui
@22degrees
22degrees / Objectbased_Three_Point_Studio_Lighting_Setup.FCMacro
Created November 6, 2024 22:55
3 point studio lighting setup - FreeCAD - Ondsel ES - Macro
# -*- coding: utf-8 -*-
# This simple macro creates a 3-point studio lighting setup.
# The lights are fixed to the object coordinate system.
# 06/11/2024
# Based on a code sample of wmayer (https://forum.freecad.org/viewtopic.php?p=146925#p146925)
# Inspired by a video of @OficineRobotica (https://youtu.be/E75hptWOSZA)
__title__ = "Objectbased_Three_Point_Studio_Lighting_Setup"
@22degrees
22degrees / Camerabased_Three_Point_Studio_Lighting_Setup.FCMacro
Last active November 6, 2024 22:53
3 point studio lighting setup - FreeCAD - Ondsel ES - Macro
# -*- coding: utf-8 -*-
# This simple macro creates a 3-point studio lighting setup.
# The lights are fixed to the viewer/camera perspective.
# 06/11/2024
# Based on a code sample of wmayer (https://forum.freecad.org/viewtopic.php?p=146925#p146925)
# Inspired by a video of @OficineRobotica (https://youtu.be/E75hptWOSZA)
__title__ = "Camerabased_Three_Point_Studio_Lighting_Setup"