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

Allow recursive compute with proxy accessor #926

Merged
merged 6 commits into from
Nov 20, 2020

Conversation

kxl-adsk
Copy link

The proxy accessor is allowing DG dependencies between Maya's data model and USD. This means we can connect input from a DG node to proxy shape to drive USD attributes AND we can connect the proxy shape outputs to make USD attributes drive other DG nodes.

This also allows injecting DG dependencies between two USD attributes, like for example creating parent constraint between two prims. In order to compute such a setup correctly, we need to allow nested / recursive compute with the proxy accessor.

This PR is doing exactly that and an example of such DG setup is provided as a regression test.


namespace MAYAUSD_NS_DEF {

/*! \class Id
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have been starting to use "version" numbers in base proxy shape and VP2RenderDelegate. Tracking what different int's and long's mean can be tricky, so we are bringing this little class to solve it.

@kxl-adsk kxl-adsk added proxy Related to base proxy shape workflows Related to in-context workflows labels Nov 18, 2020
@@ -50,6 +51,94 @@

namespace MAYAUSD_NS_DEF {

/*! /brief Scoped object setting up compute context for accessor

Proxy accessor supports nested compute that allows injecting DG dependencies to USD. More
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an extra space before "Proxy"?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the other lines have only 3 spaces.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

}
}

//! \brief Construct compute context for both inputs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment cut off?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@kxl-adsk kxl-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Nov 20, 2020
@kxl-adsk kxl-adsk merged commit e5ea4fa into dev Nov 20, 2020
@kxl-adsk kxl-adsk deleted the kxl-adsk/allow_recursive_compute_with_proxy_accessor branch November 20, 2020 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proxy Related to base proxy shape ready-for-merge Development process is finished, PR is ready for merge workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants