From the course: SketchUp Pro: Dynamic Components

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Control model visibility with a formula

Control model visibility with a formula - SketchUp Tutorial

From the course: SketchUp Pro: Dynamic Components

Start my 1-month free trial

Control model visibility with a formula

- [Instructor] At this stage, we have a user interface here, which will allow us to select a model, but it's not hooked up to anything yet. So we need to add logic into each one of these child objects. So let's start with the smallest model, the cabinet, which is 18 inches wide. And in there I'm going to add an attribute, which is hidden. So I need some logic here in this behavior that will determine whether this is going to be hidden or shown. So I'm going to highlight this, and put an equals symbol in there, to indicate that we're going to control this with a formula. So our formula has to return a true or false Boolean value. So if it's true, this particular model will be hidden, and if false, it will be shown. So what we want to do is make this a conditional statement. So it's going to do a check to see if it's going to be hidden or not. And we can do that with a function up here. Open up the drop down and scroll down into the logical functions area, and select the if statement…

Contents