Skip to content

Instantly share code, notes, and snippets.

@RH2
Created February 18, 2013 09:18
Show Gist options
  • Save RH2/4976154 to your computer and use it in GitHub Desktop.
Save RH2/4976154 to your computer and use it in GitHub Desktop.
>>> bpy.context.scene.objects['Point'].data.color
Color((1.0, 0.0, 1.0))
>>> bpy.data.materials['Thrust_color'].diffuse_color
Color((0.800000011920929, 0.05700000002980232, 0.0))
>>> bpy.context.scene.objects['Point'].data.color=bpy.data.materials['Thrust_color'].diffuse_color
>>> bpy.context.scene.objects['Point'].data.color
Color((1.0, 0.05700000002980232, 1.0))
>>> bpy.data.materials['Thrust_color'].diffuse_color
Color((0.800000011920929, 0.05700000002980232, 0.0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment