getAssetProperties: Difference between revisions
Jump to navigation
Jump to search
m (Phergus moved page getAssetProperty to getAssetProperties without leaving a redirect: Wrong name) |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{stub|examples}} | {{stub|examples}} | ||
{{MacroFunction | {{MacroFunction | ||
|name= | |name= getAssetProperties | ||
|version=1.5.8 | |version=1.5.8 | ||
|description= | |description= | ||
Line 7: | Line 7: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
getAssetProperties(assetId) | |||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' |
Latest revision as of 23:59, 14 March 2023
This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
This article needs: examples
getAssetProperties() Function
• Introduced in version 1.5.8
Returns a JSON Object holding the properties of the asset.
Usage
getAssetProperties(assetId)
Parameters
assetId
- The Asset ID for an image.
The fields returned for an image are:
- subtype: the extension of the image, such as png or jpeg
- name: the name of the file from which the asset originated
- status: the status of the asset. Broken means the assetId is incorrect, and loading means the asset hasn't be fully loaded yet.
- width: the width of the image
- height: the height of the image