Skip to content

Instantly share code, notes, and snippets.

@Volantk
Last active August 6, 2019 14:55
Show Gist options
  • Select an option

  • Save Volantk/ef9bb6cebabd60c5f17fe007201a83b7 to your computer and use it in GitHub Desktop.

Select an option

Save Volantk/ef9bb6cebabd60c5f17fe007201a83b7 to your computer and use it in GitHub Desktop.
# for blender
# resets the radius used by the skin modifier to the desired value
import bpy
import math
def set_all_vertex_skin_radius(obj, radius):
for v in obj.data.skin_vertices:
for d in v.data:
d.radius = (radius,radius)
def main():
set_all_vertex_skin_radius(bpy.context.active_object, 1)
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment