Skip to main content

Overview

You can access the properties of objects in your project through the Expression Editor. You can use these properties in equations, conditional statements, and functions.

Accessing Object Properties

To use the current value of an object’s property, use this structure:
objectName.property
For example, let’s say you’re building an onboarding flow with a progress bar. You want to fill the progress bar stack when the user taps a button, so you need to know the width of the progress bar stack. You would use:
ProgressContainer.width

Selection Helpers

Self and Parent are selection helpers that dynamically target objects. Selection helpers work the same as object properties with the same syntax. Self refers to the object on which the interaction is placed.
self.property
Parent refers to the parent of the object the interaction is on.
parent.property

Object Properties

Appearance

object.appearance
Current appearance of the object.

Background Color

object.backgroundColor
Current background color of the object.

Border Bottom Left Radius

object.borderBottomLeftRadius
Current radius value of the bottom left corner of the object.

Border Bottom Right Radius

object.borderBottomRightRadius
Current radius value of the bottom right corner of the object.

Border Top Left Radius

object.borderTopLeftRadius
Current radius value of the top left corner of the object.

Border Top Right Radius

object.borderTopRightRadius
Current radius value of the top right corner of the object.

Child Count

object.childCount
Number of children in the selected object.

Current State

object.currentState
Current state of the object.

Height

object.height
Current height of the object.

Index

object.index
Current index of the object (its order within its parent).

is Decelerating

object.isDecelerating
Returns a boolean that is true if the object’s scroll is decelerating.

is Hidden

object.isHidden
Returns a boolean that is true if the object is hidden.

is Scroll Animating

object.isScrollAnimating
Returns a boolean that is true if the object’s scroll is animating.

is Scroll Enabled

object.isScrollEnabled
Returns a boolean that is true if the object’s scroll is enabled.

is Zoom Enabled

object.isZoomEnabled
Returns a boolean that is true if the object’s zoom is enabled.

Layer Blur

object.layerBlur
Current layer blur value of the object.

Margin Bottom

object.marginBottom
Current bottom margin of the object.

Margin Left

object.marginLeft
Current left margin of the object.

Margin Right

object.marginRight
Current right margin of the object.

Margin Top

object.marginTop
Current top margin of the object.

Max X

object.maxX
Value of the object’s right edge within its parent.

Max Y

object.maxY
Value of the object’s bottom edge within its parent.

Max Zoom Scale

object.maxZoomScale
Maximum zoom scale of the object.

Mid X

object.midX
Value of the object’s horizontal mid-point within its parent.

Mid Y

object.midY
Value of the object’s vertical mid-point within its parent.

Min X

object.minX
Value of the object’s left edge within its parent.

Min Y

object.minY
Value of the object’s top edge within its parent.

Min Zoom Scale

object.minZoomScale
Minimum zoom scale of the object.

Offset X

object.offsetX
Current X offset of the object.

Offset Y

object.offsetY
Current Y offset of the object.

Opacity

object.opacity
Current opacity of the object.

Origin X

object.originX
The initial horizontal position when Play Mode begins.

Origin Y

object.originY
The initial vertical position when Play Mode begins.

Padding Bottom

object.paddingBottom
Current bottom padding of the object.

Padding Left

object.paddingLeft
Current left padding of the object.

Padding Right

object.paddingRight
Current right padding of the object.

Padding Top

object.paddingTop
Current top padding of the object.

Parent

object.parent
The parent of the object.

Parent X

object.parentX
The horizontal position of the parent of the object.

Parent Y

object.parentY
The vertical position of the parent of the object.

Percent Scrolled X

object.percentScrolledX
Horizontal percent scroll of the object (0-1).

Percent Scrolled Y

object.percentScrolledY
Vertical percent scroll of the object (0-1).

Pin Type

object.pinType
Current pin type of the object.

Position

object.position
Current position of the object.

Progressive Blur

object.progressiveBlur
Current progressive blur value of the object.

Radius

object.radius
Current radius of the object.

Rotation X

object.rotationX
Current rotation of the object around the X axis.

Rotation Y

object.rotationY
Current rotation of the object around the Y axis.

Rotation Z

object.rotationZ
Current rotation of the object around the Z axis.

Scale

object.scale
Current scale of the object.

Scale X

object.scaleX
Current horizontal scale of the object.

Scale Y

object.scaleY
Current vertical scale of the object.

Screen X

object.screenX
Current screen X of the object.

Screen Y

object.screenY
Current screen Y of the object.

Scroll Index X

object.scrollIndexX
Current horizontal scroll index of the object.

Scroll Index Y

object.scrollIndexY
Current vertical scroll index of the object.

Scroll X

object.scrollX
Current horizontal scroll of the object in points.

Scroll Y

object.scrollY
Current vertical scroll of the object in points.

Self

object.self
The object itself.

Stack Axis

object.stackAxis
Current axis of the stack.

Stack Gap

object.stackGap
Current gap of the stack.

Translate X

object.translateX
Current horizontal translation of the object.

Translate Y

object.translateY
Current vertical translation of the object.

Translate Z

object.translateZ
Current translation of the object in the Z direction.

Visible Count

object.visibleCount
Number of non-hidden children in the object.

Visible Index

object.visibleIndex
Current index of the object (its order within its parent), ignoring hidden siblings.

Width

object.width
Current width of the object.

Z Index

object.zIndex
Current Z index of the object.

Zoom Scale

object.zoomScale
Current zoom scale of the object.
I