Skip to content

Is Authoring Variants Supported ? #58

@ankmachine

Description

@ankmachine

Hello,

Big fan of this project, i wanted to try some variant authoring with this project and help contribute by writing an example. I have a draft pr #57

I am using following code to create variant set

sphere_spec.add(
        FieldKey::VariantSetNames,
        Value::TokenListOp({
            let mut op = ListOp::default();
            op.prepended_items = vec!["color".into()];
            op
        }),
    );

but it creates variant set with prepend variantSetNames = "color" instead of prepend variantSets = "color" which makes the result usda file invalid.
I was wondering if there was any other way to create valid variantSet or authoring variantSet is not supported at the moment ?
Reading of variant set works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions