Flipabit
  • Flipabit
  • Getting started
    • Flipabit overview
    • Create project
    • Run on device
    • Build
      • Build for iOS
      • Build for Android
      • Build for Desktop
    • Publish to App Stores
      • Submit to App Store
      • Submit to Google Play
  • Layers
    • Select layer
    • Change order, visibility and name
    • Copy and paste
    • Move layer
    • Resize layer
    • Rotate layer
    • Align layers
    • Arrange layers
    • Navigation layer
      • Display page title
      • Display Tab bar
      • Display Table of contents
      • Display Back button
      • Next/Prev buttons
      • Navigation actions
  • Pages
    • Add or delete page
    • Open page
    • Page background and overlay
  • Widgets
    • Image
    • Video
    • Text
    • PDF
    • Web
    • Diorama
    • Audio
    • Animation
    • Camera
    • YouTube
    • Map
    • Chart
    • Calendar
    • Table
    • Form
    • 3D Model
  • Groups
    • Add group
    • Move and resize group
  • Style
    • Opacity
    • Borders
    • Background
    • Opacity mask
    • Overlay
    • Margins
    • Blur
    • Copy and paste style
  • Interactivity
    • Navigate between pages
    • Maximize widget
    • Drag widget
    • Disable widget
  • Project
    • Resolution
    • Orientation
    • Status Bar
    • Settings
    • Publish settings
  • Animation
    • Page animation
    • Maximize animation
    • Position animation
    • Size animation
    • Size and position animation
    • Rotation animation
    • Opacity animation
    • Color animation
    • Blur animation
  • Actions
    • Actions Editor Overview
    • Add action
    • Suspend actions
    • Arguments
    • Delay action
    • Animation settings
    • Repeat action
  • Data & backend
    • Airtable
    • Google Sheets
  • Networking
  • Tutorials
  • API
    • Project
    • Page
    • Group
    • Widget
      • Image
      • Text
      • Video
      • Diorama
      • Audio
      • Web
      • Animation
      • Camera
      • YouTube
      • Map
      • Chart
      • Calendar
      • Table
      • Form
      • Record
      • 3d model
  • ⭐Updates
  • 🎁Get Flipabit
Powered by GitBook
On this page

Was this helpful?

  1. API
  2. Widget

3d model

PreviousRecordNextUpdates

Last updated 4 years ago

Was this helpful?

Property

Function

Type

Model

Sets model file Actions editor: Property > 3d > Model Code: widget.content.modelFilename

string

Diffuse

Sets diffuse texture image Actions editor: Property > 3d > Diffuse Code: widget.content.textureDiffuseFilename

string

Normal

Sets normal map texture image Actions editor: Property > 3d > Normal Code: widget.content.textureNormalFilename

string

Specular

Sets specular texture image Actions editor: Property > 3d > Specular Code: widget.content.textureSpecularFilename

string

Light intensity

Sets light intensity Actions editor: Property > 3d > Light intensity Code: widget.content.brightness

double

Ambient

Sets ambient color Actions editor: Property > 3d > Ambient Code: widget.content.ambientColor

string

X rotation

Sets camera x rotation Actions editor: Property > 3d > X rotation Code: widget.content.xRotation

double

Y rotation

Sets camera y rotation Actions editor: Property > 3d > Y rotation Code: widget.content.yRotation

double

Z rotation

Sets camera z rotation Actions editor: Property > 3d > Z rotation Code: widget.content.zRotation

double

Lock x rotate

Enable to lock x rotation while dragging Actions editor: Property > 3d > Lock x rotate Code: widget.content.xLockRotate

bool

Lock y rotate

Enable to lock y rotation while dragging Actions editor: Property > 3d > Lock y rotate Code: widget.content.yLockRotate

bool

Lock z rotate

Enable to lock z rotation while dragging Actions editor: Property > 3d > Lock z rotate Code: widget.content.zLockRotate

bool

X position

Sets camera x position Actions editor: Property > 3d > X position Code: widget.content.xPosition

double

Y position

Sets camera y position Actions editor: Property > 3d > Y position Code: widget.content.yPosition

double

Z position

Sets camera z position Actions editor: Property > 3d > Z position Code: widget.content.zPosition

double

Lock x position

Enable to lock x position while dragging Actions editor: Property > 3d > Lock x position Code: widget.content.xLockMove

bool

Lock y position

Enable to lock y position while dragging Actions editor: Property > 3d > Lock y position Code: widget.content.yLockMove

bool

Lock z position

Enable to lock z position while dragging Actions editor: Property > 3d > Lock z position Code: widget.content.zLockMove

bool

X center

Sets view center x of the camera Actions editor: Property > 3d > X center Code: widget.content.xCenter

double

Y center

Sets view center y of the camera Actions editor: Property > 3d > Y center Code: widget.content.yCenter

double

Z center

Sets view center z of the camera Actions editor: Property > 3d > Z center Code: widget.content.zCenter

double

Fov

Sets field of view of the camera in degrees Actions editor: Property > 3d > Fov Code: widget.content.fieldOfView

int

Auto rotation

Sets camera auto rotation speed Actions editor: Property > 3d > Auto rotation Code: widget.content.autoRotationSpeed

int

X auto rotation

Enable x rotation for auto rotate Actions editor: Property > 3d > X auto rotation Code: widget.content.xAutoRotation

bool

Y auto rotation

Enable y rotation for auto rotate Actions editor: Property > 3d > Y auto rotation Code: widget.content.yAutoRotation

bool

Z auto rotation

Enable z rotation for auto rotate Actions editor: Property > 3d > Z auto rotation Code: widget.content.zAutoRotation

bool

Back face

Enable back-face culling Actions editor: Property > 3d > Back face Code: widget.content.cullBack

bool

Blending

Enable texture blending Actions editor: Property > 3d > Blending Code: widget.content.blending

bool

Actions

Property

Function

Set X rotation

Actions editor: Actions > Animation > Set X rotation Code: widget.content.script.actionSetXRotation(double newXAngle) widget.content.script.actionSetXRotationWithAnimation(double newXAngle, int animationType, int animationDuration)

Set Y rotation

Actions editor: Actions > Animation > Set Y rotation Code: widget.content.script.actionSetYRotation(double newYAngle) widget.content.script.actionSetYRotationWithAnimation(double newYAngle, int animationType, int animationDuration)

Set Z rotation

Actions editor: Actions > Animation > Set Z rotation Code: widget.content.script.actionSetZRotation(double newZAngle) widget.content.script.actionSetZRotationWithAnimation(double newZAngle, int animationType, int animationDuration)

Set X position

Actions editor: Actions > Animation > Set X position Code: widget.content.script.actionSetXPosition(double newXPos) widget.content.script.actionSetXPositionWithAnimation(double newXPos, int animationType, int animationDuration)

Set Y position

Actions editor: Actions > Animation > Set Y position Code: widget.content.script.actionSetYPosition(double newYPos) widget.content.script.actionSetYPositionWithAnimation(double newYPos, int animationType, int animationDuration)

Set Z position

Actions editor: Actions > Animation > Set Z position Code: widget.content.script.actionSetZPosition(double newZPos) widget.content.script.actionSetZPositionWithAnimation(double newZPos, int animationType, int animationDuration)