Asset Queries

getAsset

Returns an asset.

Query attributes

Reply content

The Daemon replies with the details about the asset.

Example

Query:
getAsset&shortName=TRI&name=Tristan

Reply:

{
    "accepted": true,
    "query": "getAsset",
    "success": true,
    "message": "Asset retrived.",
    "content": {
            "shortName": "TRI",
            "name": "Tristan",
            "folder": "/path/to/TRI",
            "tags": [
                "tag1",
                "tag2",
                "tag3"
            ],
            "group": "Characters"
        }
}

getAssets

Returns the list of assets for the current project.

Query attributes

Reply content

The Daemon replies with the list of assets.

Example

Query:
getAssets

Reply:

{
    "accepted": true,
    "query": "getAssets",
    "success": true,
    "message": "Asset list retrived.",
    "content": {
        "assets": [
            {
                "shortName": "A1",
                "name": "Asset 01",
                "folder": "/path/to/A1",
                "tags": [
                    "tag1",
                    "tag2",
                    "tag3"
                ],
                "group": "Asset Group"
            },
            {
                "shortName": "A2",
                "name": "Asset 02",
                "folder": "/path/to/A2",
                "tags": [
                    "tag1",
                    "tag2",
                    "tag3"
                ],
                "group": "Asset Group"
            }
        ]
    }
}

getAssetGroups

Returns the list of asset groups for the current project.

Query attributes

Reply content

The Daemon replies with the list of asset groups.

Example

Query:
getAssetGroups

Reply:

{
    "accepted": true,
    "query": "getAssetGroups",
    "success": true,
    "message": "Asset group list retrived.",
    "content": {
        "assets": [
            {
                "shortName": "CHAR",
                "name": "Characters",
                "folder": "/path/to/CHAR"
            },
            {
                "shortName": "PROPS",
                "name": "Props",
                "folder": "/path/to/PROPS"
            },
            {
                "shortName": "SETS",
                "name": "Sets",
                "folder": "/path/to/SETS"
            }
        ]
    }
}