Git Product home page Git Product logo

Comments (4)

jtran56 avatar jtran56 commented on August 17, 2024

Filed as internal issue #137727.

from openusd.

chadrik avatar chadrik commented on August 17, 2024

I just checked and the solution from issue #61 of setting the root primPath work here as well:

import maya.cmds as cmds
root = cmds.assembly(name='testAss', type='pxrUsdReferenceAssembly')
cmds.setAttr(root + '.filePath', '/projects/usd/tutorials/endToEnd/models/Room_set/Room_set.usd', type='string')
# Must set primPath!
cmds.setAttr(root + '.primPath', '/Room_set', type='string')
cmds.assembly(root, active='Expanded', edit=True)
sub = 'NS_testAss:Ball_1'
cmds.assembly(sub, active='Full', edit=True)

I think both of these issues are now a question of how best to prevent users from making this mistake. Some options:

  • finish the "Create -> Scene Assembly" menu in Maya and enforce the automatic setting of primPath there. Right now all it does is make the assembly node with no attributes set.
  • add an explanation of the modes and how to setup the assembly node to the docs
  • change the behavior: It's somewhat inconvenient to have to manually set the primPath to the defaultPrim, and it's not intuitive that not setting it would invoke an alternate mode which breaks nested assemblies. So from my limited point-of-view it would be good to have the default behavior (omitting the primPath) be one that works, while having the alternate mode be something that is more explicitly enabled. but like I said, I'm not sure what the purpose of the alternate mode is, so that may be a misguided suggestion.

from openusd.

spiffmon avatar spiffmon commented on August 17, 2024

Hey @chadrik - we think the work by @mattyjams to make nested assemblies pull from the main stage also addressed this (we can no longer repro)... and you're also no longer interested in assemblies :-) Closing!

from openusd.

chadrik avatar chadrik commented on August 17, 2024

roger. you can probably close #61 too

from openusd.

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.