S3D.info
This namespace provides access to general session information.
S3D.info.user#
Description: Contains general information about the current user. Helpful to automatically populate user information for reports.
Access: get
Object properties:
| Key | Type | Description |
|---|---|---|
first_name | string | The user's first name. |
last_name | string | The user's last name. |
email | string | The user's email. |
username | string | The user's username. |
company | Object | Information about the user's company. |
settings | Object | Preferred settings of the user. |
Sample:
userInfo.js
S3D.info.file#
Description: Contains information about the current file.
Access: get
Object properties:
| Key | Type | Description |
|---|---|---|
name | string | The name of the current file open in S3D. |
path | string | The path of the current file open in S3D. |
Sample:
fileInfo.js
S3D.info.settings#
Description: Contains the settings for the current S3D instance.
Access: get
caution
In some cases, an integer value should be set to desired - 1 as it needs to coincide with the dropdown index value.
E.g: S3D.info.settings.evalPoints = 9 - 1 will set the evaluation points setting to 9 even though it will be set as 8 in the settings object.
Sample:
settingsInfo.js