What is the proper way to author bool-type USD primvars using an AttributeWrangle LOP. For example, and this is hypothetical, if we to set an object to render as a Matte object in Karma, using a RenderGeometrySettings LOP generates the following on the prim:
primvars:karma:object:ismatte bool[1]:[True]
I'm trying to figure out how I can set this using Vex instead. Bumping on the data type though. Can't figure out how to set a (USD) Boolean in Vex.
you may be talking about 18.5 since you are still mentioning bool primvars:karma:object:ismatte (since 19.0 uses int primvars:karma:object:holdoutmode)
but in 19.0, you can bind bool properties as int you can just do
i@mybool = 1;
and in Binding tab, add a new binding, set type to bool, VEX Parameter to: mybool, and Attribute name to the name of property or primvar you want to create or edit