This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Gets active Rhino camera. | |
Inputs: | |
A: Set to 'True' to activate current camera. | |
Outputs: | |
S: Starting location. | |
T: Target location. | |
L: Lens length. | |
U: Up. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Lists content of the history folder. | |
Outputs: | |
full_file: Full file paths for each file. | |
file_names: File name and extensions for each file. | |
""" | |
# Import libraries | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Finds a file in the same directory as the Grasshopper file. | |
Inputs: Name: File name and extiestion to grab. | |
Outputs: Path: Full file path. | |
""" | |
# Name component | |
ghenv.Component.Name = "Relative File Path" | |
ghenv.Component.NickName = "RelFilePath" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Get X and Y dimensions of all screens. Note: This works once per GH instance. | |
Outputs: | |
Rights: Width. | |
Bottoms: Height. | |
Names: Monitor displays. | |
""" | |
# Name component | |
ghenv.Component.Name = "Get All Screen Dimensions" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Retrieve a named slider's domain. | |
Inputs: | |
Sliders: Slider NickNames. | |
Update: Set to 'True' to update information. | |
Outputs: | |
Start: Slider domain start. | |
End: Slider domain end. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Create a named number slider. | |
Inputs: | |
Name: Slider NickName. | |
Add: Set to 'True' to create the slider. | |
""" | |
# Name component | |
ghenv.Component.Name = "Slider Creator" | |
ghenv.Component.NickName = 'Slider Creator' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Creates a data tree from a list. | |
Inputs: list: List to make a tree. | |
Outputs: tree: Output tree. | |
""" | |
# Name component | |
ghenv.Component.Name = "List to Data Tree" | |
ghenv.Component.NickName = 'ListTree' |
NewerOlder