Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import userProperties with MayaUSDImport #3395

Open
BigRoy opened this issue Oct 17, 2023 · 2 comments
Open

Import userProperties with MayaUSDImport #3395

BigRoy opened this issue Oct 17, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@BigRoy
Copy link
Contributor

BigRoy commented Oct 17, 2023

Is your feature request related to a problem? Please describe.

I have a Cube prim with a user property string attribute, for example:

custom string userProperties:customId = "hello:world"

When importing this with mayaUSDImport the attribute does not appear on the mesh or transform.

It's unclear to me what flag I should be passing to import the user properties as custom attributes on the import.

Describe the solution you'd like

Either default behavior should import the user properties or a flag importUserProperties would be added to enable it.

Describe alternatives you've considered

A python chaser could be implemented - however as far as I know it'd be non-trivial to generate the correct attribute type with the valid time-samples, etc. - which could be trivialized with UsdMayaReadUtil::ReadUsdAttribute() exposed to Python API as came up as a request here.

Additional context

The same 'issue' is also present in "Edit as Maya data" where it does not expose the user properties to the user for altering values.

Interestingly enough user properties are exposed however in a Maya USD Proxy with the UFE selection, e.g.:

image

@BigRoy
Copy link
Contributor Author

BigRoy commented Oct 17, 2023

Just wanted to note that custom primvars do get imported.
This gets imported:

    custom int primvars:myOtherValue = 1

This does not:

    custom int userProperties:myValue = 1

Note that the primvar one also works if it's not custom.

@neilh-adsk neilh-adsk moved this to Needs triage in maya-usd Nov 6, 2023
@maya-usd-git-sync
Copy link

Issue synced internally to EMSUSD-833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Needs triage
Status: Needs triage
Development

No branches or pull requests

1 participant