Skip to content

Commit

Permalink
Update SampleAddRenderMaterials.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dalefugier authored Jul 18, 2018
1 parent d39d2ba commit 82b014b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rhinopython/SampleAddRenderMaterials.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def SampleAddRenderMaterials():
# defintion than this. And, not all rendering plug-ins support the
# same material properties. This is where Render materials come in.

# An Render material is an abstract material - one that is defined
# A Render material is an abstract material - one that is defined
# by the the owning render plug-in. But a basic Render material does
# share some properties with a Rhino material.

Expand Down Expand Up @@ -51,7 +51,7 @@ def SampleAddRenderMaterials():
# Materials panel. Note, RhinoDoc.Materials.Count will equal 0. This
# is because we have not added any Rhino materials. We've only added
# Render materials. When you assign a Render material to an object
# or a layer, a compatible Rhino material will be added doc.Materials,
# or a layer, a compatible Rhino material will be added RhinoDoc.Materials,
# and this material will be referenced by the Render material.
sc.doc.Layers[0].RenderMaterial = blue_render_material;

Expand Down Expand Up @@ -79,4 +79,4 @@ def SampleAddRenderMaterials():
# script instead of being used as a module by some other python script
# This allows us to use the module which ever way we want.
if __name__ == "__main__":
SampleAddRenderMaterials()
SampleAddRenderMaterials()

0 comments on commit 82b014b

Please sign in to comment.