Post #2756:
Ma
📋 Metadata
- Author: roaoao
- Date: 2019-09-17 09:40:03
- Type:
answer - Quality Score: 8/10
- Reply to: post_02753
🏷️ Tags
macro custom-properties intermediate solved
⚙️ Related PME Features
- Macro Editor
- Python Scripting
- Custom Properties
💬 Content
MatsuikoHiroka:
can you also provide samples for tilt and Radius of curve presets value like the example you gave ( crease and bevel )
You can use setter code of the custom properties. (Eg for radius):
[setattr(p, "radius", value) for p in C.object.data.splines.active.bezier_points if p.select_control_point]
Just add value = 1:
value = 1; [setattr(p, "radius", value) for p in C.object.data.splines.active.bezier_points if p.select_control_point]
❤️ 1 likes