This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
blender:blenderdata [2017/11/21 18:20] dwheele [Data Access] |
blender:blenderdata [2017/11/21 18:26] (current) dwheele [Data Access] |
||
|---|---|---|---|
| Line 12: | Line 12: | ||
| ===== Data Access ===== | ===== Data Access ===== | ||
| - | === Object ==== | + | ==== Object ==== |
| === To get an existing object: === | === To get an existing object: === | ||
| Line 79: | Line 79: | ||
| # in the order they are added to the object | # in the order they are added to the object | ||
| </ | </ | ||
| + | |||
| + | ==== Polygons ==== | ||
| + | |||
| + | Brief example | ||
| + | |||
| + | <code python> | ||
| + | for p in ob.data.polygons: | ||
| + | p.material_index = ms_index | ||
| + | </ | ||
| + | |||
| ==== Material ==== | ==== Material ==== | ||