Skip to main content
Minor formatting fixes
Source Link
Gwen
  • 11.7k
  • 15
  • 69
  • 88

Reading and writing these values from Python must happen in objectObject mode. I added a plane and deleted one vertex, added the skin modifier and decreased the radius of one vertex.

>>> obj = bpy.data.objects['Plane']
>>> for v in obj.data.skin_vertices[0].data:
...     print(v.radius[:])
...     
(0.25, 0.25)
(0.25, 0.25)
(0.08836718648672104, 0.08836718648672104)

Each element in skin_vertices[0].data has radius, use_loose, use_root to read and write. Radii can be any two element iterable (tuple, list).

import bpy

obj = bpy.data.objects['Plane']
for v in obj.data.skin_vertices[0].data:
    v.radius = 0.2, 1.2

I just realized that ctrlCtrlaA lets you constrain the effect on radius per axis with shiftShiftxX,yY.

Reading and writing these values from Python must happen in object mode. I added a plane and deleted one vertex, added the skin modifier and decreased the radius of one vertex.

>>> obj = bpy.data.objects['Plane']
>>> for v in obj.data.skin_vertices[0].data:
...     print(v.radius[:])
...     
(0.25, 0.25)
(0.25, 0.25)
(0.08836718648672104, 0.08836718648672104)

Each element in skin_vertices[0].data has radius, use_loose, use_root to read and write. Radii can be any two element iterable (tuple, list).

import bpy

obj = bpy.data.objects['Plane']
for v in obj.data.skin_vertices[0].data:
    v.radius = 0.2, 1.2

I just realized that ctrla lets you constrain the effect on radius per axis with shiftx,y.

Reading and writing these values from Python must happen in Object mode. I added a plane and deleted one vertex, added the skin modifier and decreased the radius of one vertex.

>>> obj = bpy.data.objects['Plane']
>>> for v in obj.data.skin_vertices[0].data:
...     print(v.radius[:])
...     
(0.25, 0.25)
(0.25, 0.25)
(0.08836718648672104, 0.08836718648672104)

Each element in skin_vertices[0].data has radius, use_loose, use_root to read and write. Radii can be any two element iterable (tuple, list).

import bpy

obj = bpy.data.objects['Plane']
for v in obj.data.skin_vertices[0].data:
    v.radius = 0.2, 1.2

I just realized that CtrlA lets you constrain the effect on radius per axis with ShiftX,Y.

force chronological narrative :)
Source Link
zeffii
  • 39.9k
  • 9
  • 106
  • 189

Reading and writing these values from Python must happen in object mode. I added a plane and deleted one vertex, added the skin modifier and decreased the radius of one vertex.

import>>> bpy

obj = bpy.data.objects['Plane']
>>> for v in obj.data.skin_vertices[0].data:
...     print(v.radiusradius[:])
... =    
(0.225, 10.225)
(0.25, 0.25)
(0.08836718648672104, 0.08836718648672104)

Each element in skin_vertices[0].data has radius, use_loose, use_root to read and write. Radii can be any two element iterable (tuple, list).

>>>import bpy

obj = bpy.data.objects['Plane']
for v in obj.data.skin_vertices[0].data:
...     print(v.radius[:])
...     
(0.25,radius 0.25)
(0.25,= 0.25)
(0.088367186486721042, 01.08836718648672104)2

I just realized that ctrla lets you constrain the effect on radius per axis with shiftx,y.

Reading and writing these values from Python must happen in object mode. I added a plane and deleted one vertex, added the skin modifier and decreased the radius of one vertex.

import bpy

obj = bpy.data.objects['Plane']
for v in obj.data.skin_vertices[0].data:
    v.radius = 0.2, 1.2

Each element in skin_vertices[0].data has radius, use_loose, use_root to read and write. Radii can be any two element iterable (tuple, list).

>>> for v in obj.data.skin_vertices[0].data:
...     print(v.radius[:])
...     
(0.25, 0.25)
(0.25, 0.25)
(0.08836718648672104, 0.08836718648672104)

I just realized that ctrla lets you constrain the effect on radius per axis with shiftx,y.

Reading and writing these values from Python must happen in object mode. I added a plane and deleted one vertex, added the skin modifier and decreased the radius of one vertex.

>>> obj = bpy.data.objects['Plane']
>>> for v in obj.data.skin_vertices[0].data:
...     print(v.radius[:])
...     
(0.25, 0.25)
(0.25, 0.25)
(0.08836718648672104, 0.08836718648672104)

Each element in skin_vertices[0].data has radius, use_loose, use_root to read and write. Radii can be any two element iterable (tuple, list).

import bpy

obj = bpy.data.objects['Plane']
for v in obj.data.skin_vertices[0].data:
    v.radius = 0.2, 1.2

I just realized that ctrla lets you constrain the effect on radius per axis with shiftx,y.

deleted 45 characters in body
Source Link
zeffii
  • 39.9k
  • 9
  • 106
  • 189

May work onlyReading and writing these values from Python must happen in objectobject mode. I added a plane and deleted one vertex, added the skin modifier and decreased the radius of one vertex.

import bpy

obj = bpy.data.objects['Plane']
for v in obj.data.skin_vertices[0].data:
    v.radius = 0.2, 1.2

Each element in skin_vertices[0].data has radius, use_loose, use_root to read and write. Radii can be any two element iterable (tuple, list), but modiifying these values from python must happen in object mode.

>>> for v in obj.data.skin_vertices[0].data:
...     print(v.radius[:])
...     
(0.25, 0.25)
(0.25, 0.25)
(0.08836718648672104, 0.08836718648672104)

I just realized that ctrla lets you constrain the effect on radius per axis with shiftx,y.

May work only in object mode. I added a plane and deleted one vertex, added the skin modifier and decreased the radius of one vertex.

import bpy

obj = bpy.data.objects['Plane']
for v in obj.data.skin_vertices[0].data:
    v.radius = 0.2, 1.2

Each element in skin_vertices[0].data has radius, use_loose, use_root to read and write. Radii can be any two element iterable (tuple, list), but modiifying these values from python must happen in object mode.

>>> for v in obj.data.skin_vertices[0].data:
...     print(v.radius[:])
...     
(0.25, 0.25)
(0.25, 0.25)
(0.08836718648672104, 0.08836718648672104)

I just realized that ctrla lets you constrain the effect on radius per axis with shiftx,y.

Reading and writing these values from Python must happen in object mode. I added a plane and deleted one vertex, added the skin modifier and decreased the radius of one vertex.

import bpy

obj = bpy.data.objects['Plane']
for v in obj.data.skin_vertices[0].data:
    v.radius = 0.2, 1.2

Each element in skin_vertices[0].data has radius, use_loose, use_root to read and write. Radii can be any two element iterable (tuple, list).

>>> for v in obj.data.skin_vertices[0].data:
...     print(v.radius[:])
...     
(0.25, 0.25)
(0.25, 0.25)
(0.08836718648672104, 0.08836718648672104)

I just realized that ctrla lets you constrain the effect on radius per axis with shiftx,y.

deleted 45 characters in body
Source Link
zeffii
  • 39.9k
  • 9
  • 106
  • 189
Loading
deleted 45 characters in body
Source Link
zeffii
  • 39.9k
  • 9
  • 106
  • 189
Loading
added 29 characters in body
Source Link
zeffii
  • 39.9k
  • 9
  • 106
  • 189
Loading
edited body
Source Link
zeffii
  • 39.9k
  • 9
  • 106
  • 189
Loading
added 1 characters in body
Source Link
zeffii
  • 39.9k
  • 9
  • 106
  • 189
Loading
added 375 characters in body
Source Link
zeffii
  • 39.9k
  • 9
  • 106
  • 189
Loading
added 375 characters in body
Source Link
zeffii
  • 39.9k
  • 9
  • 106
  • 189
Loading
Source Link
zeffii
  • 39.9k
  • 9
  • 106
  • 189
Loading