Skip to content

How to add nested Attributes? #146

@Yoruba

Description

@Yoruba

I try to create a nested MobAttributeList like the screenshot.

I did try with to follwing code snippets but no go.

        # avid_mob_id = AAF.create.TaggedValue("Mob Reference MobID", mob_id),
        # avid_pos = AAF.create.TaggedValue("Mob Reference Position", slot_id)
        # avid_ref = AAF.create.TaggedValue("Avid MC Mob Reference", None)
        
        # portable_object_tv = AAF.create.TaggedValue("PortableObject", avid_ref)
        # class_id_tv = AAF.create.TaggedValue("PortableObjectClassID", 1296256338)
        
        # Create the parent TaggedValue for '__Match'
        match_tv = AAF.create.TaggedValue("__Match", None)

        # # Append the nested TaggedValues to the parent
        # match_tv.value = {portable_object_tv, class_id_tv}
      
        cam_01_timeline["MobAttributeList"].value = [match_tv]
        # cam_01_timeline["MobAttributeList"].append(match_tv)
An error occurred: <aaf2.misc.TaggedValue __Match = None at 0x718ea38e0e50> 
missing the following required properties: Value <aafIndirect TypeDefIndirect>

Image

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