python - Differentiate current and new items in outliner -


Is it possible to store existing items as well as store new items in the outliner?

  def (setup): setupRenderGlobals () importItems () frameViewport () global app app = form QtGui.qApp global form = MainWindow () form.show ()  

Example items in the outliner (default item, except for example camera): ['pCube1', 'pCube2', 'pSphere1']

then importing. Adding new items: ['pCube1', 'Pcube2', 'psphere1', 'man_rig01', 'pShere2']

Does anyone guide me in a way that I can create new items Can I separate? Currently my import window (imported in-house module) is used when popping up the prefix window (Men-Wando ()) when I am importing / stopping in any item. In this way I would like to write it in a manner where the prefix window will only pop up while adding new things.


Message to stop voters: This question is not clear No Answers are waiting to post for Maya users, but questions are already answered Should be opened from

Items in a list of Maya stores, so every time you import stuff, it ends at the end of the list. If you can do this,

  coutBefore = len (cmds.ls ())  

Before your import, you can proceed with it :

Nodes imported = cmds.ls () [coutBefore:]

After import it is possible to wrap directly into import but it is best Inspect it: I do not think it is a A good way Since you do not get any namespace to protect any potential import problems from the badly captured scenes, an alternative solution needs to be imported with namespace and if the user asks, the namespace will be barred.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -