Deploy Object


Deploy

Specify model set available in current environment.

Parameters
Name Required Description  
enable No true If true, enable, if false, disable
item No   Array of model IDs

Example

  • Deploy Model
1
2
3
4
5
6
7
{
    "cmd": "Deploy",
    "items":[
        "614AC0466F4E48B792CC83A5B99AF4FC",
        "F933B1A524B94050BC7A82B15D2057F5",
    ]
}
  • Disable
1
2
3
4
{
    "cmd": "Deploy",
    "enable":false
}

SetDragPlacementParamInDeploy

Effect setting during drag and drop.

Parameters
Name Required Description
absorbPlacement No If object being drag can be attached by target object automatically.
absorbNormal No If object being drag align to normal line of target object automatically.
absorbPivot No If object being drag align to axis line of target object automatically.

Example

1
2
3
4
5
6
{
    "cmd":"SetDragPlacementParamInDeploy",
    "absorbPlacement":true,
    "absorbNormal":false,
    "absorbPivot":true
}

GetDeployObjects

Get deploy objects and save to buffer.

Parameters
Name Required Description
toBuffer Yes Buffer to store objects

Example

1
2
3
4
{
    "cmd":"GetDeployObjects",
    "toBuffer":{"ObjectManager":"RunBuffer/deployObjects"}
}

GetDeployToJson

Get deploy objects and save to buffer in JSON format.

Parameters
Name Required Description
toBuffer Yes Buffer to store objects

Example

1
2
3
4
{
    "cmd":"GetDeployToJson",
    "toBuffer":{"ObjectManager":"RunBuffer/deployObjects"}
}

SetDeployFromJson

Deploy objects from JSON

Parameters
Name Required Description
json Yes JSON data

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
{
    "cmd":"SetDeployFromJson",
    "json":{
            "2345223":{
                "bundle":"3268DD250B694147B0BDB37FA390BF96",
                "floor":"floor01",
                "pos":"0.22 0.33 1.34", //position
                "rot":"0 0 0",//rotation
                "scl":"1 1 1",//scale
                "properties":{
                    "UserID":"Camera01",
                    "PropertyDict":{
                        "Operator":"wxz"
                    }
                }
            }
        }
}

ClearDeployObjects

Get deploy objects and save to buffer in JSON format.

Parameters
Name Required Default Description
destroyObjects Yes true Clear objects in scene, if true, will clear objects both in Deploy module and scene, if false, only clear objects in Deploy module, and keep objects in scene.

Example

1
2
3
{
    "cmd":"ClearDeployObjects"
}