Declaring a VOP Struct Type as an array

   826   0   1
User Avatar
Member
161 posts
Joined: May 2015
Offline
Hello everybody

I have defined a stuct type in a JSON file as specified here : http://www.sidefx.com/docs/houdini/vex/vop_structs.html#json [www.sidefx.com]

For example :
{
    "typeDefinitions": [
        {
            "type": "structtest",
            "typeName": "StructTest",
            "connectorColor": {
                "type": "RGB",
                "data": [0.25, 0.2, 0.9]
            },
            "variables": [
                {
                    "typeName": "int",
                    "name": "a"
                },
                {
                    "typeName": "vector",
                    "name": "b",
                    "label": "Label B"
                }
            ]
        }
    ]
}

Now I would like to define a new type which would be an array of the first type (similar to what matrixa is to matrix). In this case an array of structtest. My question is, how can I achieve this in the Type Definitions' json file?

Thanks in advance
Edited by cval - Dec. 7, 2018 16:44:20
  • Quick Links