Hot answers tagged

5 votes

How to calculate object's location after rotation around a pivot?

You could also do this with a couple of modifiers, and shape-keys, on a mesh Cylinder. An over-the-top width Bevel, Shape 0.5, with 'Clamp Overlap' A Weld, to get rid of the duplicate vertices at the ...
Robin Betts's user avatar
  • 75.5k
5 votes
Accepted

Is it possible to use a piecewise function in property drivers?

try ((1/2)-(1/sqrt(3))*cos(var-pi/6)) if var < (1/3*pi) else ((-1/2)+(1/sqrt(3))*sin(var)) it is a ternary conditional operator. it works like this: ...
Chris's user avatar
  • 57.7k
4 votes
Accepted

Add a driver to a material property using Python

Don't add a driver to the node, add it to the input: D.materials['Material'].node_tree.nodes['Principled BSDF'].inputs['Roughness'].driver_add('default_value') <...
Markus von Broady's user avatar
4 votes

How to calculate object's location after rotation around a pivot?

An iteration on lemon's answer:
Markus von Broady's user avatar
4 votes

How to calculate object's location after rotation around a pivot?

I don't know if that fits all your project constraints, but that can be the following using geometry nodes. Make a sphere. Remove bottom half part. Rotate it 180 and shift it down. Shift again but up....
lemon's user avatar
  • 58.9k
1 vote

How to make a driver/shape key cancel out another driver/shape key?

I'm a big dope, literally just subtract the priority (B) shape key value from the other (A) with drivers set up (expression being A-B). Though be sure to use some sort of controller instead of ...
Excretioner's user avatar
1 vote

Driver to change the seed every 4 frames? (Replicating "Step" Function in LineArt Modifier)

(This answer is a frame challenge.) Don't use a driver expression. Use fcurve modifiers. Set a keyframe on the Seed property. Open the keyframe editor. Add a Noise modifier to the fcurve and scale up ...
Leander's user avatar
  • 26.2k

Only top scored, non community-wiki answers of a minimum length are eligible