Api session items modeldatas: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Api session items [[Model Data]]s Endpoints. | Api session items [[Model Data]]s Endpoints. | ||
Default Query: | Default Query: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modeldatas/?f=JSON&token=API_TOKEN</syntaxhighlight> | ||
Example Response: | Example Response: | ||
< | <syntaxhighlight lang="text" copy>[ { | ||
"additions" : [ ], | "additions" : [ ], | ||
"animMultiplier" : null, | "animMultiplier" : null, | ||
| Line 26: | Line 24: | ||
"show" : "MIDDLE", | "show" : "MIDDLE", | ||
"variation" : 1, | "variation" : 1, | ||
"version" : | "version" : 11 | ||
}, { | }, { | ||
"additions" : [ ], | "additions" : [ ], | ||
| Line 47: | Line 45: | ||
"show" : "MIDDLE", | "show" : "MIDDLE", | ||
"variation" : 1, | "variation" : 1, | ||
"version" : | "version" : 12 | ||
} ]</ | } ]</syntaxhighlight> | ||
==Limit Queries== | ==Limit Queries== | ||
version=100: | version=100: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modeldatas/?version=100&token=API_TOKEN</syntaxhighlight> | ||
==Show Queries== | ==Show Queries== | ||
max version: | max version: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modeldatas/version/?token=API_TOKEN</syntaxhighlight> | ||
size: | size: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modeldatas/size/?token=API_TOKEN</syntaxhighlight> | ||
==Formats== | ==Formats== | ||
HTML: | HTML: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modeldatas/?f=HTML&token=API_TOKEN</syntaxhighlight> | ||
JSON: | JSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modeldatas/?f=JSON&token=API_TOKEN</syntaxhighlight> | ||
CSV: | CSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modeldatas/?f=CSV&token=API_TOKEN</syntaxhighlight> | ||
SSV: | SSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modeldatas/?f=SSV&token=API_TOKEN</syntaxhighlight> | ||
SMILE: | SMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modeldatas/?f=SMILE&token=API_TOKEN</syntaxhighlight> | ||
ZIPJSON: | ZIPJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modeldatas/?f=ZIPJSON&token=API_TOKEN</syntaxhighlight> | ||
ZIPSMILE: | ZIPSMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/modeldatas/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight> | ||
==Api Model Addition== | |||
API Model description of Addition | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
|amount | |||
|int | |||
| | |||
|- | |||
|animMultiplier | |||
|double | |||
| | |||
|- | |||
|name | |||
|String | |||
| | |||
|- | |||
|randomScale | |||
|double | |||
| | |||
|- | |||
|show | |||
|Show | |||
| | |||
|} | |||
==Api Model InstanceColor== | |||
API Enumeration description of InstanceColor | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
|GRAY | |||
| | |||
|- | |||
|WHITE | |||
| | |||
|- | |||
|VEGIE_GREEN | |||
| | |||
|- | |||
|GRAIN_YELLOW | |||
| | |||
|- | |||
|FLOWERS | |||
| | |||
|} | |||
==Api Model ModelData== | |||
API Model description of ModelData | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
|additions | |||
|Addition<nowiki>[]</nowiki> | |||
| | |||
|- | |||
|animMultiplier | |||
|double | |||
| | |||
|- | |||
|buffer | |||
|int | |||
| | |||
|- | |||
|dimension | |||
|int | |||
| | |||
|- | |||
|frequency | |||
|int | |||
| | |||
|- | |||
|id | |||
|int | |||
| | |||
|- | |||
|instanceColor | |||
|InstanceColor | |||
| | |||
|- | |||
|isAlpha | |||
|boolean | |||
| | |||
|- | |||
|isShowCloseby | |||
|boolean | |||
| | |||
|- | |||
|modelHeight | |||
|double | |||
| | |||
|- | |||
|modelWidth | |||
|double | |||
| | |||
|- | |||
|name | |||
|String | |||
| | |||
|- | |||
|particleEmitters | |||
|ParticleEmitterCoordinatePair<nowiki>[]</nowiki> | |||
| | |||
|- | |||
|placement | |||
|Placement | |||
| | |||
|- | |||
|randomScale | |||
|double | |||
| | |||
|- | |||
|roots | |||
|boolean | |||
| | |||
|- | |||
|rotation | |||
|Rotation | |||
| | |||
|- | |||
|show | |||
|Show | |||
| | |||
|- | |||
|variation | |||
|int | |||
| | |||
|- | |||
|version | |||
|int | |||
| | |||
|} | |||
==Api Model ParticleEmitterCoordinatePair== | |||
API Model description of ParticleEmitterCoordinatePair | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
|id | |||
|int | |||
| | |||
|- | |||
|offsetCoordinate | |||
|double[] | |||
| | |||
|- | |||
|particleEmitterID | |||
|int | |||
|[[Particle Emitter]] ID | |||
|} | |||
==Api Model Placement== | |||
API Enumeration description of Placement | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
|POINT | |||
| | |||
|- | |||
|EDGE | |||
| | |||
|} | |||
==Api Model Rotation== | |||
API Enumeration description of Rotation | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
|FIXED | |||
| | |||
|- | |||
|QUARTER | |||
| | |||
|- | |||
|FREE | |||
| | |||
|} | |||
==Api Model Show== | |||
API Enumeration description of Show | |||
{|class=wikitable | |||
!Name | |||
!Description | |||
|- | |||
|FAR | |||
| | |||
|- | |||
|MIDDLE | |||
| | |||
|- | |||
|CLOSE | |||
| | |||
|} | |||
{{article end|seealso=*[[Api Content Items]] | {{article end|seealso=*[[Api Content Items]] | ||
*[[Api session event editor ]] | *[[Api session event editor]] | ||
}} | }} | ||
[[Category:API]] | [[Category:API]] | ||
[[Category:Items]] | |||
Latest revision as of 14:13, 24 April 2026
Api session items Model Datas Endpoints.
Default Query:
https://engine.tygron.com/api/session/items/modeldatas/?f=JSON&token=API_TOKENExample Response:
[ {
"additions" : [ ],
"animMultiplier" : null,
"buffer" : 10,
"dimension" : 1,
"frequency" : 10,
"id" : 0,
"instanceColor" : "GRAY",
"isAlpha" : false,
"isShowCloseby" : false,
"modelHeight" : 6.30242,
"modelWidth" : 1.6587989,
"name" : "traffic_light",
"particleEmitters" : [ ],
"placement" : "POINT",
"randomScale" : 0.0,
"roots" : false,
"rotation" : "FREE",
"show" : "MIDDLE",
"variation" : 1,
"version" : 11
}, {
"additions" : [ ],
"animMultiplier" : null,
"buffer" : 10,
"dimension" : 1,
"frequency" : 10,
"id" : 1,
"instanceColor" : "GRAY",
"isAlpha" : false,
"isShowCloseby" : false,
"modelHeight" : 1.25364,
"modelWidth" : 1.039926,
"name" : "house_chimney",
"particleEmitters" : [ ],
"placement" : "POINT",
"randomScale" : 0.0,
"roots" : false,
"rotation" : "FIXED",
"show" : "MIDDLE",
"variation" : 1,
"version" : 12
} ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/modeldatas/?version=100&token=API_TOKENShow Queries
max version:
https://engine.tygron.com/api/session/items/modeldatas/version/?token=API_TOKENsize:
https://engine.tygron.com/api/session/items/modeldatas/size/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/modeldatas/?f=HTML&token=API_TOKENJSON:
https://engine.tygron.com/api/session/items/modeldatas/?f=JSON&token=API_TOKENCSV:
https://engine.tygron.com/api/session/items/modeldatas/?f=CSV&token=API_TOKENSSV:
https://engine.tygron.com/api/session/items/modeldatas/?f=SSV&token=API_TOKENSMILE:
https://engine.tygron.com/api/session/items/modeldatas/?f=SMILE&token=API_TOKENZIPJSON:
https://engine.tygron.com/api/session/items/modeldatas/?f=ZIPJSON&token=API_TOKENZIPSMILE:
https://engine.tygron.com/api/session/items/modeldatas/?f=ZIPSMILE&token=API_TOKENApi Model Addition
API Model description of Addition
| Name | Type | Description |
|---|---|---|
| amount | int | |
| animMultiplier | double | |
| name | String | |
| randomScale | double | |
| show | Show |
Api Model InstanceColor
API Enumeration description of InstanceColor
| Name | Description |
|---|---|
| GRAY | |
| WHITE | |
| VEGIE_GREEN | |
| GRAIN_YELLOW | |
| FLOWERS |
Api Model ModelData
API Model description of ModelData
| Name | Type | Description |
|---|---|---|
| additions | Addition[] | |
| animMultiplier | double | |
| buffer | int | |
| dimension | int | |
| frequency | int | |
| id | int | |
| instanceColor | InstanceColor | |
| isAlpha | boolean | |
| isShowCloseby | boolean | |
| modelHeight | double | |
| modelWidth | double | |
| name | String | |
| particleEmitters | ParticleEmitterCoordinatePair[] | |
| placement | Placement | |
| randomScale | double | |
| roots | boolean | |
| rotation | Rotation | |
| show | Show | |
| variation | int | |
| version | int |
Api Model ParticleEmitterCoordinatePair
API Model description of ParticleEmitterCoordinatePair
| Name | Type | Description |
|---|---|---|
| id | int | |
| offsetCoordinate | double[] | |
| particleEmitterID | int | Particle Emitter ID |
Api Model Placement
API Enumeration description of Placement
| Name | Description |
|---|---|
| POINT | |
| EDGE |
Api Model Rotation
API Enumeration description of Rotation
| Name | Description |
|---|---|
| FIXED | |
| QUARTER | |
| FREE |
Api Model Show
API Enumeration description of Show
| Name | Description |
|---|---|
| FAR | |
| MIDDLE | |
| CLOSE |