wheorama.blogg.se

Blender driver scripted expression tutorials
Blender driver scripted expression tutorials











Key1 (as you can see in the field in the bottom right of the Shape Keys The Basis shape key has the stacks fully retracted. Add Single Driver This will add a single driver to the selected property. For example, it will add drivers to X, Y, and Z for Rotation. Add Drivers This will add drivers to the set of properties related to the selected one. RMB the property and select one of the following options. Workflow Adding Drivers To control a property with a driver, find the property you want to add driver to. Distance Use the distance between two objects or bones. Rotational Difference Use the rotational difference between two objects or bones. Space World Space, Transform Space, Local Space. Type Example, X Location, X Rotation, X Scale. Bone ID of the Armature bone, example, Bone, Bone.002, Arma.r. ID ID of the object, example, Cube, Armature, Camera. Transform Channel Use one of the Transform channels from an object or bone. RNA Path The RNA id name of the property, example, 'ambient' from material shading. ID The ID of the ID-Block type, example, Material.001. ID-Type The ID-Block type, example, Key, Image, Object, Material. First select the type of ID-block, then the ID of the ID-block, then copy and paste an RNA property (Ctrl+V). Single Property Use the value from some RNA property.įor example, the Ambient shading color from a material. Variable Type The type of variable to use. No spaces or dots are allowed and must start with a letter. Driver Variables Name Name to use for scripted expressions/functions. Add Variable Adds a new Driver Variable.ĭistance setup. The current value of the variables or scripted expression. See Driver Expression below for some examples. Here you can add real numbers, math operators, math functions, python properties, driver functions. Maximum Value Uses the highest value from the referenced Driver Variables. Minimum Value Uses the lowest value from the referenced Driver Variables. You must write a python expression which performs your own calculations on the Driver Variables. Scripted Expression Uses a Scripted Expression. Sum Values Uses the the sum of the referenced Driver Variables. (If you only have one driver variable there is no real difference between average, sum, minimum and maximum) Average Value Uses the the average value of the referenced Driver Variables. Type The type of calculation to use on the set of Driver Variables. Remove Driver Removes the driver from the object. Driver Settings Update Dependencies This will force an update for the Driver Value dependencies. The drivers panel is for setting up Driver Variables or a Scripted Expression which will determine the value of the Driver Value. This panel is located in the Graph Editor with the mode set to Drivers.













Blender driver scripted expression tutorials