Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/l/a/ladybug-HEAD/src/ladybug_ladybug.py   ladybug(Download)
 
            # Add Parent layer properties
            parentLayer = rc.DocObjects.Layer()
            parentLayer.Name = parentLayerName
            parentLayer.IsVisible = True
 
            # Make Study Folder
            studyLayer = rc.DocObjects.Layer()
            studyLayer.Name = studyLayerName
            studyLayer.Color =  System.Drawing.Color.Yellow
 
                # creat the new sub layer for each geometry
                nLayer = rc.DocObjects.Layer()
                nLayer.Name = layerName + '_' + `l`
                nLayer.IsVisible = False
                # study = 1; # do it once in a rotation study
                # add layer for
                newLayer = rc.DocObjects.Layer()
                if OrientationStudy:
                    newLayer.Name = ("%.3f" % (result)) + '<-' + layerName + '_' + `l` +'_Angle '+ `rotationAngle`

src/r/h/rhinopython-HEAD/scripts/rhinoscript/layer.py   rhinopython(Download)
import Rhino.DocObjects.Layer
import scriptcontext
import utility as rhutil
import System.Guid