But the process limits you to dealing only with .ma files as opposed to
being agnostic.

This is true, it comes down to whether or not the limitation outweigh the
benefit.

And nuke doesn't have a binary project file format. They just have one .nk
format.

Sorry, I should have been more clear. I meant that Nuke shared the
convenience of Maya's .ma files in that they are also easily manipulated as
strings of text.


On 2 April 2014 21:15, Justin Israel <[email protected]> wrote:

> But the process limits you to dealing only with .ma files as opposed to
> being agnostic. And nuke doesn't have a binary project file format. They
> just have one .nk format.
>
> I didn't see where the other suggestions were focused on exporting.
>
>
> On Thu, Apr 3, 2014 at 8:29 AM, Marcus Ottosson <[email protected]>wrote:
>
>> I think the question was about importing rather than exporting select
>> items from a Maya scene, and I got the impression it was on the heavy side
>> as well.
>>
>> Modifying the Maya ascii files is indeed conventionally considered a
>> black-magic approach, but they do follow a strict, easy to understand and
>> consistent layout. I've had much luck modifying and generating it in the
>> past, mainly for managing references, and would recommend getting your head
>> around it.
>>
>> For reference, the ascii format is laid out into four steps.
>>
>> 1. Header, with versioning and references
>> 2. Creating nodes
>> 3. Connecting nodes
>> 4. Setting attributes
>>
>> Any and all of these can be modified without heading into Maya. It's a
>> convenience not many programs share, can only think of Nuke at the moment,
>> and one that provides great power.
>>
>>
>> On 2 April 2014 19:39, Justin Israel <[email protected]> wrote:
>>
>>> +1 to Fredrik's suggestion of loading it in a headless Maya standalone
>>> to export what you want. That way your process doesn't have to rely on
>>> parsing the scene file format and making assumptions.
>>>  On Apr 3, 2014 4:15 AM, "Tuan Nguyen" <[email protected]> wrote:
>>>
>>>> To Fredrik
>>>> Yeah, i'm working on mayapy too, much easier, and safe than re-creating
>>>> node. However, it tooks 2-3 seconds to load maya.standalone, and 1-2 more
>>>> seconds to load a maya file, I will try to fix it.
>>>>
>>>> Looking into Maya API too, but no luck.
>>>>
>>>>  --
>>>> 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/CAMCvD%2BF6evSu_TsVyax3798Mxo5YoiPmDta0vqcdpPPeJS1Mcg%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAMCvD%2BF6evSu_TsVyax3798Mxo5YoiPmDta0vqcdpPPeJS1Mcg%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 [email protected].
>>>  To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2Q9Goz3Ay8DsWDtjbHRJNy5p3ZqaPPZdhbyV4j7-OJJA%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2Q9Goz3Ay8DsWDtjbHRJNy5p3ZqaPPZdhbyV4j7-OJJA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> *Marcus Ottosson*
>> [email protected]
>>
>> --
>> 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/CAFRtmODs1MGX%3DYPbeTrm9SrOL46whKJKtxb8dAL1HJiHzpjdPw%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODs1MGX%3DYPbeTrm9SrOL46whKJKtxb8dAL1HJiHzpjdPw%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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3uCdEHJRXP9LXSJgmanZdugDV69MFZYhSCUE%3DoBd1D3Q%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3uCdEHJRXP9LXSJgmanZdugDV69MFZYhSCUE%3DoBd1D3Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Marcus Ottosson*
[email protected]

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

Reply via email to