GithubHelp home page GithubHelp logo

Comments (9)

c64kernal avatar c64kernal commented on June 1, 2024

Thanks guys! I'd recommend going straight to UsdImagingGLEngine -- skip UsdImagingGL, it's about to disappear too. Let me know if you run into any trouble at all, and I'd be happy to help.

from al_usdmaya.

murphyeoin avatar murphyeoin commented on June 1, 2024

Thanks George (sorry, I hadn't realised it was you!), we'll give it a try and let you know

from al_usdmaya.

sirpalee avatar sirpalee commented on June 1, 2024

@c64kernal I started updating AL_USDMaya at Luma to get some tests rolling with the latest USD dev branch. I found this commit: PixarAnimationStudios/USD@5b226e0 and AL_USDMaya rely on TestIntersectionBatch for selections in Maya. It doesn't look like that we have any alternatives.

from al_usdmaya.

c64kernal avatar c64kernal commented on June 1, 2024

Hi @sirpalee -- really sorry about that! It was unused code in our tree so we didn't think anyone else was using it either. The question of how to move forward is interesting. It seems like AL_USDMaya may be the only client of this code at all. I worry that simply introducing it back into the tree would result in someone else coming along and removing it, like I did.

The other option of exposing enough of the innards to let you implement it yourself (basically making the trask controller accessible) might be okay, but I might be met with some (very understandable) resistance about breaking an abstraction.

Let me talk to some more folks tomorrow and see what we can do. In the meantime, if there's anything that you can think about that we could do, please let us know! At this point, I'm going to consider this a release-blocking issue, until I hear from you that you're okay to go.

Thanks Pal, and apologies again for the trouble.

from al_usdmaya.

sirpalee avatar sirpalee commented on June 1, 2024

Hey @c64kernal, thanks for the quick reply! I don't have much to add here, I feel the same as you, exposing the internals of the UsdImagingGLEngine is not a good idea. If you are worried about the function getting removed again, I can work around this problem by subclassing UsdImagingGLEngine and copy back the function from the old version. That way I still get to access the internals without you messing up the abstraction.

from al_usdmaya.

c64kernal avatar c64kernal commented on June 1, 2024

That's a good idea, @sirpalee -- and wow, all that stuff is still protected, totally by accident :) I should at least add a comment saying that folks are depending on it being protected now, so that we don't "fix" it and make it all private.

That sounds like a good way to go for now. I'll talk to more folks tomorrow and I'll let you know if anyone else has any better ideas -- and I feel much better that you're unstuck with this proposal.

from al_usdmaya.

c64kernal avatar c64kernal commented on June 1, 2024

Hi again, @sirpalee -- I talked to the team about this, and it seems like subclassing is the way to go for this release, so that you get unstuck. However, it's not ideal because of the reasons I mentioned above -- so our proposal, is to merge the two APIs into TestIntersection. We'd take a PR for that, if you have time to make one, and then when that gets rolled out you can remove the subclass... does that sound okay with you?

from al_usdmaya.

sirpalee avatar sirpalee commented on June 1, 2024

@c64kernal sounds good! Let us get this change in al_usdmaya first, and I'll look into adding back functionality upstream for the next release.

from al_usdmaya.

c64kernal avatar c64kernal commented on June 1, 2024

Thanks very @sirpalee -- really appreciate it.

from al_usdmaya.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.