Skip to main content
rctrancei70713229
Participating Frequently
March 26, 2021
Answered

Block / unblock effect control using expression

  • March 26, 2021
  • 1 reply
  • 435 views

Hello friends. I need help solving a small problem.

The effects layer has:
Checkbox
Color control A
Color control B

 

It is necessary that when the checkbox is set to 1, Color control A and Color control B must be locked (so that the user cannot change the value). Accordingly, if the checkbox value is 0. Color control A and Color control B become active.

 

Is it possible to do this using an expression? Thank!

This topic has been closed for replies.
Correct answer Martin_Ritter

You cannot grey-out them, but lock the control to a certain value.

 

chk = checkbox (use the pick-whip)

ccontrolA = Color control A (use the pick-whip)

ccontrolB = Color control B (use the pick-whip)

fixValA = [0,0,0,1]

fixValB = [0,0,0,1]

 

if (chk == 1){

    ccontrolA = fixValA;

    ccontrolB = fixValB;

}

 

*Martin

 

 

 

 

1 reply

Martin_Ritter
Martin_RitterCorrect answer
Legend
March 26, 2021

You cannot grey-out them, but lock the control to a certain value.

 

chk = checkbox (use the pick-whip)

ccontrolA = Color control A (use the pick-whip)

ccontrolB = Color control B (use the pick-whip)

fixValA = [0,0,0,1]

fixValB = [0,0,0,1]

 

if (chk == 1){

    ccontrolA = fixValA;

    ccontrolB = fixValB;

}

 

*Martin

 

 

 

 

rctrancei70713229
Participating Frequently
March 26, 2021

Martin_Ritter. That's what I need. Thank you so much! 🙂