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
""" | |
Returns all child layers of a specified layer. | |
Inputs: | |
Layer: The layer to check for children. | |
{item, str} | |
Output: | |
Children: The child layers of the specified layer. | |
{item/list/tree, str} | |
Remarks: | |
Author: Max Eschenbach |
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
import Rhino | |
import clr | |
import os | |
if "KangarooSolver" in str(clr.References): | |
import KangarooSolver as ks | |
else: | |
try: | |
rhino_version = Rhino.RhinoApp.ExeVersion | |
if os.name == "nt": |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using Rhino; | |
using Rhino.Geometry; | |
using Grasshopper; | |
using Grasshopper.Kernel; | |
using Grasshopper.Kernel.Data; |