Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

 
Raivion
Topic Author
Posts: 1
Joined: Fri Oct 31, 2014 8:26 am

Creating radio buttons with checkbox controllers

Mon Jan 26, 2015 8:21 pm

Hey guys,

I'm trying to create radio buttons with checkbox controllers.

this is the setup: http://i.imgur.com/wRPCuR1.jpg

This only works if I dont move the time indicator. When I move it, or RAM preview it it just jumps back to the top checkbox selected. I think this is because I'm trying to create a "loop" which isn't possible in a way.

I have no idea what to do next, or if this is even possible in the first place. Is there perhaps a workaround/fix for this?

Thanks in advance.
 
beginUndoGroup
Posts: 77
Joined: Tue Nov 27, 2012 6:41 am

Re: Creating radio buttons with checkbox controllers

Thu Jan 29, 2015 1:33 am

If your fill color only takes two values, you can simplify your framework by using only one checkbox, named for instance "alt color",
and in the fill set an expression like:

if (effect("alt color")("Checkbox").value==1) [1,0,0,1] else [0,0,1,1];

With a bigger color range, checkboxes won't be very helpful i think.

Xavier.

Who is online

Users browsing this forum: No registered users and 5 guests