> For the complete documentation index, see [llms.txt](https://docs.flipabit.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flipabit.dev/api/widget/3d-model.md).

# 3d model

<div align="left"><img src="/files/-MIxukRn0NSycovwTRzq" alt=""></div>

| Property        | Function                                                                                                                                                                                                   | Type     |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| Model           | <p>Sets model file<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Model</code><br><strong>Code:</strong><br><code>widget.content.modelFilename</code></p>                                | `string` |
| Diffuse         | <p>Sets diffuse texture image<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Diffuse</code><br><strong>Code:</strong><br><code>widget.content.textureDiffuseFilename</code></p>          | `string` |
| Normal          | <p>Sets normal map texture image<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Normal</code><br><strong>Code:</strong><br><code>widget.content.textureNormalFilename</code></p>         | `string` |
| Specular        | <p>Sets specular texture image<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Specular</code><br><strong>Code:</strong><br><code>widget.content.textureSpecularFilename</code></p>       | `string` |
| Light intensity | <p>Sets light intensity<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Light intensity</code><br><strong>Code:</strong><br><code>widget.content.brightness</code></p>                    | `double` |
| Ambient         | <p>Sets ambient color<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Ambient</code><br><strong>Code:</strong><br><code>widget.content.ambientColor</code></p>                            | `string` |
| X rotation      | <p>Sets camera x rotation<br><br><strong>Actions editor:</strong><br><code>Property > 3d > X rotation</code><br><strong>Code:</strong><br><code>widget.content.xRotation</code></p>                        | `double` |
| Y rotation      | <p>Sets camera y rotation<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Y rotation</code><br><strong>Code:</strong><br><code>widget.content.yRotation</code></p>                        | `double` |
| Z rotation      | <p>Sets camera z rotation<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Z rotation</code><br><strong>Code:</strong><br><code>widget.content.zRotation</code></p>                        | `double` |
| Lock x rotate   | <p>Enable to lock x rotation while dragging<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Lock x rotate</code><br><strong>Code:</strong><br><code>widget.content.xLockRotate</code></p> | `bool`   |
| Lock y rotate   | <p>Enable to lock y rotation while dragging<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Lock y rotate</code><br><strong>Code:</strong><br><code>widget.content.yLockRotate</code></p> | `bool`   |
| Lock z rotate   | <p>Enable to lock z rotation while dragging<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Lock z rotate</code><br><strong>Code:</strong><br><code>widget.content.zLockRotate</code></p> | `bool`   |
| X position      | <p>Sets camera x position<br><br><strong>Actions editor:</strong><br><code>Property > 3d > X position</code><br><strong>Code:</strong><br><code>widget.content.xPosition</code></p>                        | `double` |
| Y position      | <p>Sets camera y position<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Y position</code><br><strong>Code:</strong><br><code>widget.content.yPosition</code></p>                        | `double` |
| Z position      | <p>Sets camera z position<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Z position</code><br><strong>Code:</strong><br><code>widget.content.zPosition</code></p>                        | `double` |
| Lock x position | <p>Enable to lock x position while dragging<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Lock x position</code><br><strong>Code:</strong><br><code>widget.content.xLockMove</code></p> | `bool`   |
| Lock y position | <p>Enable to lock y position while dragging<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Lock y position</code><br><strong>Code:</strong><br><code>widget.content.yLockMove</code></p> | `bool`   |
| Lock z position | <p>Enable to lock z position while dragging<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Lock z position</code><br><strong>Code:</strong><br><code>widget.content.zLockMove</code></p> | `bool`   |
| X center        | <p>Sets view center x of the camera<br><br><strong>Actions editor:</strong><br><code>Property > 3d > X center</code><br><strong>Code:</strong><br><code>widget.content.xCenter</code></p>                  | `double` |
| Y center        | <p>Sets view center y of the camera<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Y center</code><br><strong>Code:</strong><br><code>widget.content.yCenter</code></p>                  | `double` |
| Z center        | <p>Sets view center z of the camera<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Z center</code><br><strong>Code:</strong><br><code>widget.content.zCenter</code></p>                  | `double` |
| Fov             | <p>Sets field of view of the camera in degrees<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Fov</code><br><strong>Code:</strong><br><code>widget.content.fieldOfView</code></p>        | `int`    |
| Auto rotation   | <p>Sets camera auto rotation speed<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Auto rotation</code><br><strong>Code:</strong><br><code>widget.content.autoRotationSpeed</code></p>    | `int`    |
| X auto rotation | <p>Enable x rotation for auto rotate<br><br><strong>Actions editor:</strong><br><code>Property > 3d > X auto rotation</code><br><strong>Code:</strong><br><code>widget.content.xAutoRotation</code></p>    | `bool`   |
| Y auto rotation | <p>Enable y rotation for auto rotate<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Y auto rotation</code><br><strong>Code:</strong><br><code>widget.content.yAutoRotation</code></p>    | `bool`   |
| Z auto rotation | <p>Enable z rotation for auto rotate<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Z auto rotation</code><br><strong>Code:</strong><br><code>widget.content.zAutoRotation</code></p>    | `bool`   |
| Back face       | <p>Enable back-face culling<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Back face</code><br><strong>Code:</strong><br><code>widget.content.cullBack</code></p>                        | `bool`   |
| Blending        | <p>Enable texture blending<br><br><strong>Actions editor:</strong><br><code>Property > 3d > Blending</code><br><strong>Code:</strong><br><code>widget.content.blending</code></p>                          | `bool`   |

## Actions

| Property       | Function                                                                                                                                                                                                                                                                                                                            |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Set X rotation | <p><strong>Actions editor:</strong><br><code>Actions > Animation > Set X rotation</code><br><strong>Code:</strong><br><code>widget.content.script.actionSetXRotation(double newXAngle)</code><br><code>widget.content.script.actionSetXRotationWithAnimation(double newXAngle, int animationType, int animationDuration)</code></p> |
| Set Y rotation | <p><strong>Actions editor:</strong><br><code>Actions > Animation > Set Y rotation</code><br><strong>Code:</strong><br><code>widget.content.script.actionSetYRotation(double newYAngle)</code><br><code>widget.content.script.actionSetYRotationWithAnimation(double newYAngle, int animationType, int animationDuration)</code></p> |
| Set Z rotation | <p><strong>Actions editor:</strong><br><code>Actions > Animation > Set Z rotation</code><br><strong>Code:</strong><br><code>widget.content.script.actionSetZRotation(double newZAngle)</code><br><code>widget.content.script.actionSetZRotationWithAnimation(double newZAngle, int animationType, int animationDuration)</code></p> |
| Set X position | <p><strong>Actions editor:</strong><br><code>Actions > Animation > Set X position</code><br><strong>Code:</strong><br><code>widget.content.script.actionSetXPosition(double newXPos)</code><br><code>widget.content.script.actionSetXPositionWithAnimation(double newXPos, int animationType, int animationDuration)</code></p>     |
| Set Y position | <p><strong>Actions editor:</strong><br><code>Actions > Animation > Set Y position</code><br><strong>Code:</strong><br><code>widget.content.script.actionSetYPosition(double newYPos)</code><br><code>widget.content.script.actionSetYPositionWithAnimation(double newYPos, int animationType, int animationDuration)</code></p>     |
| Set Z position | <p><strong>Actions editor:</strong><br><code>Actions > Animation > Set Z position</code><br><strong>Code:</strong><br><code>widget.content.script.actionSetZPosition(double newZPos)</code><br><code>widget.content.script.actionSetZPositionWithAnimation(double newZPos, int animationType, int animationDuration)</code></p>     |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.flipabit.dev/api/widget/3d-model.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
