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

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/r/h/rhinopythonscripts-HEAD/LayerTools.py   rhinopythonscripts(Download)
def layerAttributes(layerName, layerColor=System.Drawing.Color.Black):
    """Returns a Rhino ObjectAttributes object for a rhino layer with an optional color."""
    att = Rhino.DocObjects.ObjectAttributes()
    att.LayerIndex = addRhinoLayer(layerName, layerColor)
    return att

src/l/a/ladybug-HEAD/src/ladybug_ladybug.py   ladybug(Download)
    def bakeObjects(self, newLayerIndex, testGeomety, legendGeometry, legendText, textPt, textSize, fontName = 'Verdana', crvs = None):
            attr = rc.DocObjects.ObjectAttributes()
            attr.LayerIndex = newLayerIndex
            attr.ColorSource = rc.DocObjects.ObjectColorSource.ColorFromObject
            attr.PlotColorSource = rc.DocObjects.ObjectPlotColorSource.PlotColorFromObject

src/r/h/rhinopythonscripts-HEAD/GeomTools.py   rhinopythonscripts(Download)
def bakeMany(listOfThings, objectAttributes=None, translationVector=None):
    idsOut = []
    if not objectAttributes:
        objectAttributes = Rhino.DocObjects.ObjectAttributes()
    if translationVector:

src/r/h/rhinopythonscripts-HEAD/Make2D.py   rhinopythonscripts(Download)
def layerAttributes(layerName, layerColor=System.Drawing.Color.Black):
    """Returns a Rhino ObjectAttributes object for a rhino layer with an optional color."""
    att = Rhino.DocObjects.ObjectAttributes()
    att.LayerIndex = addRhinoLayer(layerName, layerColor)
    return att

src/r/h/rhinopythonscripts-HEAD/IntersectionTools.py   rhinopythonscripts(Download)
        att = objectAttributes
    else:
        att = Rhino.DocObjects.ObjectAttributes()
    resultSet = []
    # project everything
        att = objectAttributes
    else:
        att = Rhino.DocObjects.ObjectAttributes()
    resultSet = []
    # project everything

src/r/h/rhinopython-HEAD/scripts/rhinoscript/object.py   rhinopython(Download)
    id = rhutil.coerceguid(target_ids, False)
    if id: target_ids = [id]
    source_attr = Rhino.DocObjects.ObjectAttributes()
    if source_id:
        source = rhutil.coercerhinoobject(source_id, True, True)

src/r/h/rhinopythonscripts-HEAD/GeoJson2Rhino.py   rhinopythonscripts(Download)
    # set up object attributes
    for jsonFeature in jsonFeatures: # for each feature
        att = Rhino.DocObjects.ObjectAttributes()
        # setup layer if requested
        if destinationLayer != None: