Version

menu_open

ak.wwise.core.switchContainer.getAssignments


Returns the list of assignments between a Switch Container's children and states.

Supported by

Graphical User Interface, Command-Line Interface.

Arguments

Name Type Description
id *   The ID (GUID) or path of the Switch Container.

(Required *)

Arguments Details


id

description : The ID (GUID) or path of the Switch Container.
Possibilities, one of the following :

1) type : string
pattern : ^\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}$

2) type : string
pattern : ^\


Result

Name Type Description
return   List of assignments (pairs of child and state).

Result Details


return

description : List of assignments (pairs of child and state).
Possible types : or object

resultSchema / return / ...

child

description : The ID (GUID) or path of the child assigned to a State.
Possibilities, one of the following :

1) type : string
pattern : ^\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}$

2) type : string
pattern : ^\

resultSchema / return / ...

stateOrSwitch

description : The ID (GUID) or path of the State or Switch to which the child is assigned.
Possibilities, one of the following :

1) type : string
pattern : ^\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}$

2) type : string
pattern : ^\


Examples :

Assignments of a Switch Container.

Get the list of assignments for a Switch Container.

Arguments:

{
    "id": "{7A12D08F-B0D9-4403-9EFA-2E6338C197C1}"
}

Result:

{
    "return": [
        {
            "child": "{7A12D08F-B0D9-4403-9EFA-2E6338C197C1}", 
            "stateOrSwitch": "{A076AA65-B71A-45BB-8841-5A20C52CE727}"
        }, 
        {
            "child": "{8B12D08F-B0D9-4403-9EFA-2E6338C197D1}", 
            "stateOrSwitch": "{B076BB65-B71A-45BB-8841-5A20C52CE738}"
        }
    ]
}


Detailed JSON Schema


Arguments :

{
    "type": "object", 
    "properties": {
        "id": {
            "description": "The ID (GUID) or path of the Switch Container.", 
            "anyOf": [
                {
                    "type": "string", 
                    "pattern": *Must be a valid GUID*
                }, 
                {
                    "type": "string", 
                    "pattern": "^\\\\"
                }
            ]
        }
    }, 
    "required": [
        "id"
    ], 
    "additionalProperties": false
}


Options :

{
    "type": "object", 
    "required": [], 
    "properties": {}, 
    "additionalProperties": false
}


Response :

{
    "type": "object", 
    "properties": {
        "return": {
            "description": "List of assignments (pairs of child and state).", 
            "items": [
                {
                    "type": "object", 
                    "properties": {
                        "child": {
                            "description": "The ID (GUID) or path of the child assigned to a State.", 
                            "anyOf": [
                                {
                                    "type": "string", 
                                    "pattern": *Must be a valid GUID*
                                }, 
                                {
                                    "type": "string", 
                                    "pattern": "^\\\\"
                                }
                            ]
                        }, 
                        "stateOrSwitch": {
                            "description": "The ID (GUID) or path of the State or Switch to which the child is assigned.", 
                            "anyOf": [
                                {
                                    "type": "string", 
                                    "pattern": *Must be a valid GUID*
                                }, 
                                {
                                    "type": "string", 
                                    "pattern": "^\\\\"
                                }
                            ]
                        }
                    }, 
                    "required": [
                        "child", 
                        "stateOrSwitch"
                    ], 
                    "additionalProperties": false
                }
            ]
        }
    }
}

Document version : 1


Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise