I haven't looked into the metadata system yet either other than the
overview but it does seem interesting, especially as you point out that it
can be used for persistent data in the scene file as well.

On Fri, Mar 30, 2018 at 10:40 AM, Kenneth Ibrahim <kenibra...@gmail.com>
wrote:

> Marcus: Thanks for the answers here! I'll look into the link you sent for
> Roy's implementation. I'll likely not use the object set approach.
>
> Justin: This would be for non-proprietary nodes for the most part.
>
> I was also wondering whether PyMEL offers anything beyond the cmds module
> that might be suitable for this.
>
> On Fri, Mar 30, 2018 at 12:53 AM, Marcus Ottosson <konstrukt...@gmail.com>
> wrote:
>
>> Here’s some that I’ve used for various circumstances.
>>
>>    1. A string attribute, with optional content
>>       - The attribute name itself can be an identifier, such that you
>>       can leverage the wildcard of ls, e.g. cmds.ls
>>       ("*.mySpecialIdentifier")
>>       - 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
>>       
>> <https://github.com/getavalon/core/blob/6a2c8edec2fc5cd018d0496d094f8885cde8060c/avalon/maya/lib.py#L400>
>>       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 <madoo...@gmail.com> 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 <justinhid...@gmail.com>
>>> 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 <https://go.microsoft.com/fwlink/?LinkId=550986> for
>>>> Windows 10
>>>>
>>>>
>>>>
>>>> *From: *Kenneth Ibrahim <kenibra...@gmail.com>
>>>> *Sent: *Thursday, March 29, 2018 11:46 PM
>>>> *To: *python_inside_maya@googlegroups.com
>>>> *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 python_inside_maya+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>>> gid/python_inside_maya/CAP_aC5ZiBysX7Ytwvt5DRgDaukaHZZZmPNO6
>>>> EV2VimhSKb%3D8Hw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAP_aC5ZiBysX7Ytwvt5DRgDaukaHZZZmPNO6EV2VimhSKb%3D8Hw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>>> gid/python_inside_maya/5abd6d7b.09e61c0a.3f9bc.2a08%40mx.google.com
>>>> <https://groups.google.com/d/msgid/python_inside_maya/5abd6d7b.09e61c0a.3f9bc.2a08%40mx.google.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/python_inside_maya/CADvbQwJgh-wPbg18R%3DA-kedSQ2eTpYwoGf
>>> ToRVLVrYviaH6_QQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/CADvbQwJgh-wPbg18R%3DA-kedSQ2eTpYwoGfToRVLVrYviaH6_QQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> 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 python_inside_maya+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/python_inside_maya/CAFRtmOAG%2BoWa7Mtq99%2BXE836wHHpX3BV
>> HyihRTOUtPiAe2jWgw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAG%2BoWa7Mtq99%2BXE836wHHpX3BVHyihRTOUtPiAe2jWgw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> "God is a metaphor for a mystery that absolutely transcends all human
> categories of thought. It's as simple as that!" - Joseph Campbell
>



-- 
"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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAP_aC5YTEGzgfJEU0qMJB8rQpV74OXhpBqSDthasLB6900H1cQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to