New answers tagged

0

Rename all single prop variable targets using custom prop. Code slapped together from How to find out what is using an image in a blend file Searches thru every driver in the blend file and renames "oldname" to "newname" Test script below, with example call renaming and single property driver variables targets from ["prop"] to [&...


1

The Property Chart add-on covers edge-cases which are lacking from the Right Click > Copy to selected and the CTRL + L "Make Links" menu pretty well (eg. copying dimensions or object name) but I find it is a bit limited : One has to know the python attribute name in order to type it in the Properties field. The horizontal + vertical expansion ...


0

Use bpy.types.PropertyGroup class Properties(bpy.types.PropertyGroup): roundness : bpy.props.FloatProperty(default=0.0, name='Roughness', min = 0, max = 1, update=updateFloat) metallic : bpy.props.FloatProperty(default=0.0, name='Metallic', min = 0, max = 1, update=updateFloat) specular : bpy.props.FloatProperty(default=0.0, name='Specular', min =...


0

The TEXTEDIT_UPDATE option is what you are looking for. See this answer for more information.


0

Just select as much as you want, then right click -> Shade smooth -> all selected will get it.


2

One workaround is to use a custom property and drivers - you can use the related object's custom property, or just any new/temporary custom property if you only want to use it once. The setup is not terribly long: Another workaround on Windows is to use Autohotkey script like so: #NoEnv #SingleInstance Force SetBatchLines, -1 SendMode Input global STEP := ...


3

You can access the custom property in the form object["property_name"], for example if you created a few spheres with different property MATTYPE, you could iterate over them to print something different for each value of the custom property in this way: import bpy spheres = [o for o in bpy.data.objects if o.name.startswith('Sphere')] for sphere ...


2

Why not just use a custom property of an object? You can see it and modify it in Numbers Panel while working on modifiers: (after creating the property simply right-click on the field and choose "copy as a new driver", then paste that driver in your modifiers) Also remember you can setup a layout where you can see the contents of multiple ...


Top 50 recent answers are included