Skip to content
07-848 2005

SketchUp, SketchUp desktop

Dynamic Components OnClick function examples

Use OnClick functions with SketchUp dynamic components. ALERT("message") displays a message in an alert box, for example =ALERT("You Clicked Me!").

OnClick functions

Function

Description

Examples

ALERT("message")

ALERT displays the message value in an alert box.

Example:
=ALERT("You Clicked Me!")
In the ONCLICK attribute, this displays an alert box with the message "You Clicked Me!".

View SketchUp Example

ANIMATE(attribute, state1, state2, ... stateN)

ANIMATE changes the attribute to the next value in the parameter list over half a second. If ONCLICK contains ANIMATE("X",0,100), clicking the component animates "X" between 0 and 100. Clicking again animates it back to 0 from 100. With more than two states, each click moves to the next state in order. If ONCLICK contains ANIMATE("ROTZ",0,-130,10,100), each click moves through the 4 values in order.

ANIMATE uses default easing, which controls animation speed on a scale of 0 to 100, with 0 being fastest. Easing uses two numbers. The first (easein) controls the speed at the start. The second (easeout) controls the speed at the end. Default easing is 0,100, so the animation starts fast and slows down at the end.

View SketchUp Example

ANIMATESLOW(attribute, state1, state2, ... stateN)

ANIMATESLOW works like ANIMATE but takes one second.

View SketchUp Example

ANIMATEFAST(attribute, state1, state2, ... stateN)

ANIMATEFAST works like ANIMATE but takes a quarter of a second.

View SketchUp Example

ANIMATECUSTOM("attribute", time, easein, easeout, state1, ...stateN)

ANIMATECUSTOM works like ANIMATE but lets you set the duration and easing. See ANIMATE for an explanation of easing.

View SketchUp Example

GOTOSCENE("sceneName," time, easein, easeout)

GOTOSCENE moves to the scene you specify by name or number. See ANIMATE for an explanation of easing.

View SketchUp Example

REDRAW()

REDRAW redraws the component that contains the function.

View SketchUp Example

SET("attribute", state1, state2, ...stateN)

SET sets the specified attribute to the next state in the list.

View SketchUp Example

Procadsys customer support

Still need help?

Licences, renewals and billing

Our New Zealand team looks after your SketchUp licences, renewals and invoices.

Monday to Friday, 9:00 am to 4:30 pm NZ time, excluding New Zealand public holidays.

Technical problems

Technical support from our New Zealand team is available with a current Procadsys SketchUp Plus subscription: Pro Plus, Pro Scan Plus, Pro Civil Contractor Plus, Pro Advanced Workflows Plus or Studio Plus.

Initial response within one business day.

On another SketchUp plan? Technical problems go to Trimble support.