Skip to content

Instantly share code, notes, and snippets.

@StepMaher
StepMaher / set_rhino_camera.py
Last active June 11, 2023 08:55
Set Rhino camera using GHPython.
"""
Sets Rhino camera from starting location, target location and lens length.
Args:
S: Starting location.
T: Target location.
L: Lens length.
"""
ghenv.Component.Name = "Set Camera"
ghenv.Component.NickName = 'SetCam'
@StepMaher
StepMaher / reboot_GH.py
Last active December 3, 2023 22:21
Reboots Grasshopper.
"""
Reboots Grasshopper.
Inputs: Reboot: Set to 'True' to reboot Grasshopper.
"""
ghenv.Component.Name = "Reboot Grasshopper"
ghenv.Component.NickName = 'GH-Rebooter'
# Stephen P. Maher / 2015
# Many thanks to Andrew Heumann for the help.