Last active
June 24, 2019 15:29
-
-
Save johnpierson/ba41e9a2f8cd46a26a99fe72bd44de48 to your computer and use it in GitHub Desktop.
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 clr | |
clr.AddReference('ProtoGeometry') | |
from Autodesk.DesignScript.Geometry import* | |
clr.AddReference('DSCoreNodes') | |
from DSCore import * | |
clr.AddReference('GeometryColor') | |
from Modifiers import* | |
# builds a cuboid | |
cBoid = Cuboid.ByLengths(2,2,2) | |
# picks a color | |
color = Color.ByARGB(255,255,0,0) | |
# outputs the colored geometry | |
OUT = GeometryColor.ByGeometryColor(cBoid,color) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment