1
$\begingroup$

I am trying to create a switch between 2 custom properties.

Context, I would like to create a switch or limitation where, if one custom properties is in the value of 1, the others properties will automatically be value of 0.

enter image description here

In the image, there are two custom properties, as you can see both of the value is 1. I would like to make it if blue is 1, red will be 0 and vice-versa. Is that possible?

The blender file

$\endgroup$
1
  • $\begingroup$ Do you want to be able to change both custom properties so that each might flip the other, so, for instance I could flip either red or blue to 1 forcing the other to 0; or do you want one to be modifiable but the other be always set by it? $\endgroup$ Commented Jul 27, 2021 at 16:33

1 Answer 1

0
$\begingroup$

I would add 3 custom properties:

Red, Blue and Master

Blue copies the value of Master as Driver

Red gets 1-abs(Master) as Driver

Result:

enter image description here

blend file:

$\endgroup$
3
  • $\begingroup$ Thank you for the replied. I would have never imagine to do it this way but I will try it out. Just curious about the "flip_fluid" custom properties though, I don't really understand about it. My apologize if I sounded amateurish. $\endgroup$
    – Kenny
    Commented Jul 27, 2021 at 13:26
  • $\begingroup$ It‘a from my flip fluids add-on. You can ignore that. I am amateur too…but still learning 🤗 $\endgroup$
    – Chris
    Commented Jul 27, 2021 at 13:27
  • $\begingroup$ If my answer works for you, please click on the checkmark left to my answer. Thank you. $\endgroup$
    – Chris
    Commented Jul 27, 2021 at 13:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .