Skip to content

Instantly share code, notes, and snippets.

"""
Allows for dynamically changing the Grasshopper document's Faint and Hidden wire display types. This will not affect wires set to Default.
Inputs: WireDisplay: Plug in a boolean value here. True = "Faint" wires, False = "Hidden" wires.
"""
# Name component
ghenv.Component.Name = "Wire Display Changer"
ghenv.Component.NickName = 'Wire Changer'
# Import libraries and methods
@StepMaher
StepMaher / change_slider_domain.py
Last active November 4, 2015 21:18
Change the domain of an existing slider with a given NickName.
"""
Reset a named slider's domain.
Inputs:
Sliders: List of slider NickNames.
Min: Minimum Value(s).
Max: Maximum value(s).
Update: Set to 'True' to update the slider's domain.
"""
# Name component