Blender: Difference between revisions

643 bytes added ,  10 September 2020
Added the scripts part along with a script and a link to an existing one.
mNo edit summary
(Added the scripts part along with a script and a link to an existing one.)
Line 81: Line 81:
* [https://www.youtube.com/watch?v=vKgH5zXIYmM Rigify (CGDive)]
* [https://www.youtube.com/watch?v=vKgH5zXIYmM Rigify (CGDive)]


==Scripts==
===Script for enabling/disabling constraints in selected objects===
This script allows the user to enable or disable constraints in currently selected objects, depending on whether con.mute is set to 0 (enable constraints) or 1 (disable). Usage is simple, just select your objects, set the value of con.mute and run the script.
<pre>import bpy
obj = bpy.context.selected_pose_bones_from_active_object
for bone in obj:
    for con in bone.constraints:
        con.mute = 1</pre>
===Blender Forward throw adjustment script===
[[XML:TRAM#Blender_Forward_throw_adjustment_script|Please see the XML:TRAM page describing this script.]]


[[Category:Bi-platform modding tools]]
[[Category:Bi-platform modding tools]]
191

edits