Getting bindings from Level Variant Sets

number_of_variant_sets = variants_asset.get_num_variant_sets()

for i in range(number_of_variant_sets):

variant\_set \= variants\_asset.get\_variant\_set(i)

if not variant\_set:

    continue



display\_name \= variant\_set.get\_display\_text()

number\_of\_variants \= variant\_set.get\_num\_variants()



for j in range(number\_of\_variants):

    variant \= variant\_set.get\_variant(j)

    if not variant:

        continue



    display\_name \= variant.get\_display\_text()

    actors \= variant.get\_num\_actors()



    for k in range(actors):

        actor \= variant.get\_actor(k)

        if not actor:

            continue



    captured\_properties \= variant.get\_captured\_properties(actor)



    for captured\_property in captured\_properties:

        property\_type \= captured\_property.get\_property\_type\_string()

        full\_display\_string \= captured\_property.get\_full\_display\_string()



        if property\_type \=\= 'bool':

            value \= captured\_property.get\_value\_bool() \<\- Crash here sometimes