Skip to content

Instantly share code, notes, and snippets.

@sojack
Created November 14, 2017 22:27
Show Gist options
  • Save sojack/edb775744bd425a38dc740e89fd6d17c to your computer and use it in GitHub Desktop.
Save sojack/edb775744bd425a38dc740e89fd6d17c to your computer and use it in GitHub Desktop.
blender iterate over selected items and perform an action
// code meant to be run on the python console
//blender iterate over selected items and perform an action
// in this case increase the resolution of a curve and extrude by a certain ammount
for nr, obj in enumerate(bpy.context.selected_objects):
obj.data.render_resolution_u = 24
obj.data.extrude = 0.006
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment