Api session items modeldatas: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 24: | Line 24: | ||
"show" : "MIDDLE", | "show" : "MIDDLE", | ||
"variation" : 1, | "variation" : 1, | ||
"version" : | "version" : 1 | ||
}, { | }, { | ||
"additions" : [ ], | "additions" : [ ], | ||
| Line 45: | Line 45: | ||
"show" : "MIDDLE", | "show" : "MIDDLE", | ||
"variation" : 1, | "variation" : 1, | ||
"version" : | "version" : 2 | ||
} ]</syntaxhighlight> | } ]</syntaxhighlight> | ||
==Limit Queries== | ==Limit Queries== | ||
| Line 78: | Line 78: | ||
!Description | !Description | ||
|- | |- | ||
|amount | | amount | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|animMultiplier | | animMultiplier | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|name | | name | ||
|String | | String | ||
| | | | ||
|- | |- | ||
|randomScale | | randomScale | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|show | | show | ||
|Show | | Show | ||
| | | | ||
|} | |} | ||
| Line 106: | Line 106: | ||
!Description | !Description | ||
|- | |- | ||
|GRAY | | GRAY | ||
| | | | ||
|- | |- | ||
|WHITE | | WHITE | ||
| | | | ||
|- | |- | ||
|VEGIE_GREEN | | VEGIE_GREEN | ||
| | | | ||
|- | |- | ||
|GRAIN_YELLOW | | GRAIN_YELLOW | ||
| | | | ||
|- | |- | ||
|FLOWERS | | FLOWERS | ||
| | | | ||
|} | |} | ||
| Line 130: | Line 130: | ||
!Description | !Description | ||
|- | |- | ||
|additions | | additions | ||
|Addition<nowiki>[]</nowiki> | | Addition<nowiki>[]</nowiki> | ||
| | | | ||
|- | |- | ||
|animMultiplier | | animMultiplier | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|buffer | | buffer | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|dimension | | dimension | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|frequency | | frequency | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|id | | id | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|instanceColor | | instanceColor | ||
|InstanceColor | | InstanceColor | ||
| | | | ||
|- | |- | ||
|isAlpha | | isAlpha | ||
|boolean | | boolean | ||
| | | | ||
|- | |- | ||
|isShowCloseby | | isShowCloseby | ||
|boolean | | boolean | ||
| | | | ||
|- | |- | ||
|modelHeight | | modelHeight | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|modelWidth | | modelWidth | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|name | | name | ||
|String | | String | ||
| | | | ||
|- | |- | ||
|particleEmitters | | particleEmitters | ||
|ParticleEmitterCoordinatePair<nowiki>[]</nowiki> | | ParticleEmitterCoordinatePair<nowiki>[]</nowiki> | ||
| | | [[Particle Emitter]]CoordinatePair<nowiki>[]</nowiki> | ||
|- | |- | ||
|placement | | placement | ||
|Placement | | Placement | ||
| | | | ||
|- | |- | ||
|randomScale | | randomScale | ||
|double | | double | ||
| | | | ||
|- | |- | ||
|roots | | roots | ||
|boolean | | boolean | ||
| | | | ||
|- | |- | ||
|rotation | | rotation | ||
|Rotation | | Rotation | ||
| | | | ||
|- | |- | ||
|show | | show | ||
|Show | | Show | ||
| | | | ||
|- | |- | ||
|variation | | variation | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|version | | version | ||
|int | | int | ||
| | | | ||
|} | |} | ||
| Line 219: | Line 219: | ||
!Description | !Description | ||
|- | |- | ||
|id | | id | ||
|int | | int | ||
| | | | ||
|- | |- | ||
|offsetCoordinate | | offsetCoordinate | ||
|double[] | | double[] | ||
| | | | ||
|- | |- | ||
|particleEmitterID | | particleEmitterID | ||
|int | | int | ||
|[[Particle Emitter]] ID | | [[Particle Emitter]] ID | ||
|} | |} | ||
| Line 239: | Line 239: | ||
!Description | !Description | ||
|- | |- | ||
|POINT | | POINT | ||
| | | | ||
|- | |- | ||
|EDGE | | EDGE | ||
| | | | ||
|} | |} | ||
| Line 253: | Line 253: | ||
!Description | !Description | ||
|- | |- | ||
|FIXED | | FIXED | ||
| | | | ||
|- | |- | ||
|QUARTER | | QUARTER | ||
| | | | ||
|- | |- | ||
|FREE | | FREE | ||
| | | | ||
|} | |} | ||
| Line 270: | Line 270: | ||
!Description | !Description | ||
|- | |- | ||
|FAR | | FAR | ||
| | | | ||
|- | |- | ||
|MIDDLE | | MIDDLE | ||
| | | | ||
|- | |- | ||
|CLOSE | | CLOSE | ||
| | | | ||
|} | |} | ||
Latest revision as of 14:18, 12 June 2026
API Endpoint: /api/session/items/modeldatas/
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" : 1
}, {
"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" : 2
} ]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[] | Particle EmitterCoordinatePair[] |
| 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 |