Add Custom Attribute to DAE Export

Does anyone know of a way to add a custom attribute to a DAE file exported from SketchUp?

As an example, I want to use attribute dictionaries to tag faces in a model with a cardinal direction (North, South, East or West), and I’d like to have this information inserted into the DAE export.

So perhaps a particular <geometry> block in the DAE could have a custom <direction> attribute. Is there any way to do this?

Thanks,
Andrew

Do the DAE / COLLADA specifications allow for these “custom” attributes ?
(Usual XML formats must follow their schema.)

Looking at the v1.4 spec I see that there IS provision for an <extra> element.
(See “Extensibility”, page 36.)

But attaching an attribute dictionary named “extra” or “dae” (with a “direction” attribute whose value is “North”) to a SketchUp face within a group, fails to export to the DAE file as any attribute.

This topic was automatically closed after 91 days. New replies are no longer allowed.