Skip to content

Maya: Allow to disable exporting of custom user attributes from maya nodes #1076

@BigRoy

Description

@BigRoy

Issue

The exporter currently always includes custom user attributes on nodes as extras.{attribute} on each node.
In some cases you might want to exclude certain extra attributes from export instead of needing to remove these from your scenes prior to that.

Solution

Add an extra parameters which would allow to disable the writing of extras.

Extra nice would be to be able to include only certain extra attributes (or even maya native attributes) like a attribute parameter which would e.g. be a string like "myAttribute otherAttribute primaryVisibility" to include only those attributes as extras if it matches that name.

Or potentially allow more complex expressions for the attributes (like Houdini groups) "* ^myAttribute" to include all (*) and then exclude (^) the myAttribute named attribute. Or match custom_* to match all attributes that start with custom_ like custom_myAttribute or custom_exportData.

Additional Info

The export logic for Custom Attributes is done through BabylonExporter.CustomAttributes.cs

We would need to expose an extra parameter for the exporter and filter the custom attributes around here using e.g. this.exportParameters.exportCustomAttributes and implement a filtering like described above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions