Resource


DownloadBundle

Download model.

Parameters
Name Required Description
bundleId Yes Model Id
cmds No Callback command after download

Example

  • Change object model after download
1
2
3
4
5
6
7
8
9
{
    "cmd": "DownloadBundle",
    "bundleId":"F933B1A524B94050BC7A82B15D2057F5",
    "cmds":[{
        "cmd":"ChangePlacementBundle",
        "uid":"object01",
        "bundleId":"F933B1A524B94050BC7A82B15D2057F5"
    }]
}

ChangePlacementBundle

Change object model.

注解

Model must be downloaded or used in scene.

Parameters
Name Required Description
Object Reference Yes Object Reference
bundleId Yes Model ID

Example

  • Change object model
1
2
3
4
5
{
    "cmd":"ChangePlacementBundle",
    "uid":"object01",
    "bundleId":"F933B1A524B94050BC7A82B15D2057F5"
}

DownloadTexture

Download texture.

Parameters
Name Required Description
url Yes URL to download texture, can be relative path based on mmd server URL
cmds Yes Callback command after download

Example

  • Change object texture after download
1
2
3
4
5
6
7
8
9
{
    "cmd": "DownloadTexture",
    "url":"images/selection.png", //URL or relative path based on mmd server URL
    "cmds":[{
        "cmd":"ChangePlacementTexture",
        "uid":"object01",
        "url":"images/selection.png"
    }]
}

ChangePlacementTexture

Change texture of object.

注解

texture must be downloaded or used in scene.

Parameters
Name Required Description
Object Reference Yes Object Reference
url Yes Texture URL, or relative path based on mmd server URL

Example

  • Change texture of object
1
2
3
4
5
{
    "cmd":"ChangePlacementTexture",
    "uid":"object01",
    "url":"images/selection.png"
}