Wow the set one is pretty cool never though of that , Maya uses sets on some of its node setup so it must be extra legit
Sent from Mail for Windows 10 From: Marcus Ottosson Sent: Friday, March 30, 2018 8:53 AM To: [email protected] Subject: Re: [Maya-Python] Node tagging system Here’s some that I’ve used for various circumstances. 1. A string attribute, with optional content o The attribute name itself can be an identifier, such that you can leverage the wildcard of ls, e.g. cmds.ls("*.mySpecialIdentifier") o Or, the contents of the string can be an identifier, e.g. cmds.getAttr("someNode.id") == "mySpecialIdentifier". In this case, it’s a little harder to find/list all that match but can offer a little more generality. Roy over at Colorbleed once put together a fast equivalent of the wildcard approach but for the contents of strings here that mimic the interface for MongoDB queries, which has worked well. E.g. to return all nodes with a special identifier, lsattr("idAttribute", "uniqueIdentifier") 2. An object set. An object set in Maya is the equivalent of a list in Python and can “contain” nodes by having nodes connected to it. Listing associated nodes is then made via cmds.sets("mySpecialNodes", query=True). An advantage of this is that you can get a visual indication of which nodes are included, along with being able to add elements of e.g. meshes that aren’t as good with metadata themselves. A disadvantage is the somewhat invisible behavior of duplicating member nodes and sometimes unhelpful case of having a lot of members. Then there’s the somewhat new metadata, but I’ve never managed to penetrate the documentation enough to actually get this working predictably. It seems like a good fit though, especially as it can store metadata not only in nodes but in the scene itself. On 29 March 2018 at 23:59, Mahmoodreza Aarabi <[email protected]> wrote: There is not enough information about your case can you explain your situation more clearly?! Because there are bunch of ways to do that On Thu, Mar 29, 2018 at 3:49 PM justin hidair <[email protected]> wrote: Is ‘ these ‘ nodes custom nodes from you or any node from maya ? if it’s the former you can create a dummy yet unique attribute to identify your nodes , if it’s the latter I don’t know maybe message connections mumble ? Sent from Mail for Windows 10 From: Kenneth Ibrahim Sent: Thursday, March 29, 2018 11:46 PM To: [email protected] Subject: [Maya-Python] Node tagging system I'm wondering if anyone can offer any good methodologies for tagging nodes in Maya such that they can be identified and collected by said tags. The simplest, most obvious method would be to add a string attribute and poll that but I'm thinking there may be other options people have used for good reason (blindData, metadata, etc.). Looking forward to any suggestions. -- "God is a metaphor for a mystery that absolutely transcends all human categories of thought. It's as simple as that!" - Joseph Campbell -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAP_aC5ZiBysX7Ytwvt5DRgDaukaHZZZmPNO6EV2VimhSKb%3D8Hw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5abd6d7b.09e61c0a.3f9bc.2a08%40mx.google.com. For more options, visit https://groups.google.com/d/optout. -- Bests, madoodia -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CADvbQwJgh-wPbg18R%3DA-kedSQ2eTpYwoGfToRVLVrYviaH6_QQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAG%2BoWa7Mtq99%2BXE836wHHpX3BVHyihRTOUtPiAe2jWgw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5abe78b7.0a561c0a.157ea.a3fc%40mx.google.com. For more options, visit https://groups.google.com/d/optout.
