Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zeffii/mesh_reenter
various ways to create a mesh and pick it up later for parametric modification
https://github.com/zeffii/mesh_reenter
Last synced: about 1 month ago
JSON representation
various ways to create a mesh and pick it up later for parametric modification
- Host: GitHub
- URL: https://github.com/zeffii/mesh_reenter
- Owner: zeffii
- License: gpl-3.0
- Created: 2016-01-28T10:34:43.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-28T14:32:47.000Z (almost 9 years ago)
- Last Synced: 2023-03-13T11:54:40.473Z (over 1 year ago)
- Language: Python
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mesh_ReEnter
various ways to create a mesh and pick it up later for parametric modificationThe point of this repo is to show approaches to this problem. Ideally the scripts shouldn't register bpy.types.Object.* collections or properties --- tho this limitation is a little bit arbitrary .
```python
# upon creation
obj['kind'] = 'circle'# upon registration
bpy.types.Object.parametric_circle = # PropertyGroup# upon draw() in a panel
row = layout.row()
kind = obj.get('kind')
if kind in ['circle', 'gear', 'bolt', 'diamond']:
props = getattr(obj, 'parametric_' + kind)
if props:
col = l.column()
for propname in props.rna_type.properties.keys():
if not propname in {'rna_type', 'name'}:
col.prop(props, propname)
```