4
$\begingroup$

Sorry I'm new to Blender, came from Maya. Let's say I want to move object A via changing value from object B's custom properties, how can I do it in Blender?

In Maya, there's something called connection editor where basically I can take value from a custom properties/attribute to a translate/rotation/scale or just anything else that able to read said value. I wonder if there's anything like it in Blender or at least nodes for it. Thanks a bunch!

$\endgroup$
7
$\begingroup$

Sure. You can drive the values directly.

  1. Create your custom property (I used a cube)
  2. RMB on the value > Copy as New Driver
  3. Target the other object (I used a Cone) and RMB > Paste Driver

enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ dammnn huge thanks mann. Looks like drive keys are more versatile in Blender than Maya $\endgroup$ – exceld Feb 14 at 12:55
  • $\begingroup$ Happy to help :) $\endgroup$ – Jachym Michal Feb 14 at 14:09
5
$\begingroup$

Drivers

enter image description here

Right click on any animatable property and can add a driver.

By way of example have added a driver to Cone's X location, using a custom property on the "Cone".

  • Copy data path from the custom property. In this case the prop named "prop" has datapath '["prop"]' which is copied to clipboard.

  • Add / Edit Driver. Make a single property variable and use the cone object

  • Paste CtrlV the previously copied path into field.

Now the cone moves in x direction via the value of the custom property "prop"

Use self.

enter image description here

Note, since the prop and the driver both belong to the cone object, could instead enable the "use self" option and make the driver expression

self["prop"]

removing the need to set up any driver variables.

$\endgroup$
1
  • $\begingroup$ Note that to use "self" in driver expression you must enable "Auto Run Python Scripts" in the Save/Load panel of the preferences $\endgroup$ – Gorgious Feb 14 at 12:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.