It was a custom asset / reference system that I wrote a good few years back
at Eurocom.  At the time I wanted to use Maya asset system.  I nearly used
it, but found some killer bugs when duplicating assets.  They basically
kept loosing material assignments.  Also as assets use the reference system
I had issue's with CGFX shaders being loaded and complied time and time
again.  Slowing scene load times considerably.   So I rolled my own system
by using our metaData node / class.  Inherited from the base class, hooked
up to a db to track assets and versions (shotgun like) and rolled some
utility methods for importing, updating, pushing edits back to source etc.
It was something was bespoke for the way artists wanted to work at the time.


On Fri, Nov 14, 2014 at 9:59 AM, Marcus Ottosson <konstrukt...@gmail.com>
wrote:

> The MAsset code I wrote
>
> Hi David, was this code you shared somewhere? Or to which code are you
> referring?
> ​
>
> On 14 November 2014 09:55, Mark Jackson <mark...@gmail.com> wrote:
>
>> So I'm going for the UUID idea, but going to reset it each time the node
>> gets cached, that way when referencing files the minute that node hits the
>> cache the UUID is updated and becomes unique regardless of referencing.
>> Just the node duplicate issue which I'll use the callback mechanism, I was
>> looking at that on Monday as a possible hack. I also pinged Engineering
>> about this so be interesting to see their response.
>>
>> thanks
>>
>> mark
>>
>> On 13 November 2014 19:53, David Moulder <da...@thirstydevil.co.uk>
>> wrote:
>>
>>> Hi Mark and Marcus.  The MAsset code I wrote managed uuids on duplicate
>>> callbacks.  You could re-use / re-factor that.  Worked throughout GoldenEye
>>> without any issues.
>>>
>>> Also the cool thing about that uuid was I could add several nodes to the
>>> same uuid and treat them as one MAsset,  In effect Maya's containers,
>>> without the bugs at the time.  If for any reason the metaData connections
>>> are lost then you have the uuids to match them back up.
>>>
>>> I'd prefer an alternative though!
>>>
>>>
>>>
>>> On Thu, Nov 13, 2014 at 11:10 AM, Mark Jackson <mark...@gmail.com>
>>> wrote:
>>>
>>>> Hi Marcus, thanks for the link, seems to re-enforce everything I've
>>>> found so far, might ping the devs a mail, see if there's been any movement
>>>> on this front in the api since that post.
>>>>
>>>> I've been digging too, and am still not satisfied with any of the
>>>> solutions. MObjectHandles not being unque puts that out of the question.
>>>> Adding a UUID to the nodes is great as it means everything is unique,
>>>> except if you duplicate that node, you now have 2 nodes with the same UUID
>>>> as I store it on the attrs of the node. At the moment the Cache is looking
>>>> at the UUID and using that as the key in the cache, so what I'm thinking is
>>>> that I change the UUID on the node everytime it gets added to the cache
>>>> itself, so the cache adds the data and is responsible for it. Now this
>>>> works as it means any nodes being added to the cache are always unique,
>>>> until you bloody duplicate the damn node. I'm thinking of hooking to the
>>>> callback on duplicate, but then there's bound to be more instance where
>>>> this breaks so it doesn't seem the best option.
>>>>
>>>> I can't believe there's not a simple solutions that's blatantly obvious
>>>> for this, any more insights guys?
>>>>
>>>>
>>>> On 13 November 2014 10:19, Marcus Ottosson <konstrukt...@gmail.com>
>>>> wrote:
>>>>
>>>>> Was looking up on this too, and found some more discussion about it
>>>>> here (albeit from 2008).
>>>>> http://forums.cgsociety.org/archive/index.php/t-630763.html
>>>>>
>>>>> If I'm understanding your needs correctly, Mark, you're looking to
>>>>> uniquely, and immutably identify nodes in Maya? I'd like for this too, but
>>>>> it seems things haven't changed about this since that CGTalk thread, does
>>>>> anyone have any more info on this?
>>>>>
>>>>> Adding an attribute is one way, but it eliminates the possibility of
>>>>> building for a generic Maya scene, as opposed to one that has been built
>>>>> with the tool in mind so that nodes can have been given UIDs in the first
>>>>> place.
>>>>> ​
>>>>>
>>>>> --
>>>>> 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/CAFRtmOCm1OgEOag-6miFUinhScCqD8h%3D-B9PGgpgh75LWyC5zw%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCm1OgEOag-6miFUinhScCqD8h%3D-B9PGgpgh75LWyC5zw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> -------------------------------------
>>>> Mark Jackson
>>>> CEO / Technical Director
>>>> red9consultancy.com
>>>>
>>>> --
>>>> 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/CAGQH2FHuaAio1JcnZkmbUYnF%2BK56iNy%3DXrJaLuGzq3b_RbqtMQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FHuaAio1JcnZkmbUYnF%2BK56iNy%3DXrJaLuGzq3b_RbqtMQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> *David Moulder*
>>> Technical Animator / Artist
>>> squis...@gmail.com
>>> *Professional Profile
>>> <http://uk.linkedin.com/pub/david-moulder/1/b12/b5a>*
>>>
>>> Mobile: +44 (0)7814033242
>>> See who we know in common
>>> <http://www.linkedin.com/e/wwk/5748982/?hs=false&tok=3tztwkse1silw1>Want
>>> a signature like this?
>>> <http://www.linkedin.com/e/sig/5748982/?hs=false&tok=3pwLU9-mBsilw1>
>>>
>>> --
>>> 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/CABD4PkRBibh8gbb%2BL96%3DdK8DYWANq9CT3eUd-CVFYRH%3D1YG-cg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/CABD4PkRBibh8gbb%2BL96%3DdK8DYWANq9CT3eUd-CVFYRH%3D1YG-cg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> -------------------------------------
>> Mark Jackson
>> CEO / Technical Director
>> red9consultancy.com
>>
>> --
>> 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/CAGQH2FGyYaMiRHQtSq%3Dq%3DU--ZhF-Bxo3S_AB2FVQNZjs4U%2B_EQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FGyYaMiRHQtSq%3Dq%3DU--ZhF-Bxo3S_AB2FVQNZjs4U%2B_EQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> *Marcus Ottosson*
> konstrukt...@gmail.com
>
> --
> 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/CAFRtmOB07C5b%2BrEs4n_prv6rd29_93EwQ6esJOh9gxVhs9b5jQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOB07C5b%2BrEs4n_prv6rd29_93EwQ6esJOh9gxVhs9b5jQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*David Moulder*
Technical Animator / Artist
squis...@gmail.com
*Professional Profile <http://uk.linkedin.com/pub/david-moulder/1/b12/b5a>*

Mobile: +44 (0)7814033242
See who we know in common
<http://www.linkedin.com/e/wwk/5748982/?hs=false&tok=3tztwkse1silw1>Want a
signature like this?
<http://www.linkedin.com/e/sig/5748982/?hs=false&tok=3pwLU9-mBsilw1>

-- 
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/CABD4PkRF7QzXiQ78Oa5d66ra1GLnJJ7A%3DZoXAgMVTp0bkHkwgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to