Grasshopper

algorithmic modeling for Rhino

could anybody tell me how to change the colour of same special objects in one layer but not the total objects in the layer

No Description

Views: 190

Replies to This Discussion

Hi CY,

you need to set a colour override in the Object Attributes. Object Attributes have a field that stores a local colour and also a field that defines where the object colour comes from:

Dim att As Rhino.DocObjects.ObjectAttributes = doc.CreateDefaultAttributes()
att.ColorSource = Rhino.DocObjects.ObjectColorSource.ColorFromObject
att.ObjectColor = Color.BurlyWood
doc.Objects.AddBrep(x, att)


--
David Rutten
david@mcneel.com
Seattle, WA
thank you!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service