On Fri, 12 Aug 2016, 5:55 AM likage <[email protected]> wrote:

> I am doing a simple unittest in maya while using chadvernon page as an
>>> example..
>>>
>>> I tried something very simple such as creating a polyCube, while that
>>> works, I had thought of replacing the line with a custom node creation in
>>> which its code comes from my company's proprietary library.
>>> As soon as I run this updated code, I got an error - *ValueError: No
>>> object matches name: Stack *in which I think it is telling me that it
>>> is unable to locate this particular node name..
>>>
>>
>> Sounds right
>>
>
> Why is this so? The reason I asked this is because since I am creating a
> mesh using cmds.polyCube(), shouldn't it work in the same way if I were to
> create something similar but the coding is different?
>

The reason I had said that is because the error looked completely
reasonable for a case where you have changed a bit of code. You didn't show
us any code or context so all I had to go off of was one error string. When
you want help debugging an error it is usually helpful to include the
complete code context and what you changed.

>
> As for the link, I used
> http://www.chadvernon.com/blog/maya/unit-testing-in-maya/ as an example..
>
> I am trying to check if something is within the project folder, if it is
> not, it will then looked into another project folder, grab that particular
> file and test it..
> For example, if this char_rig does not exists in ProjectA, it will grab
> this char_rig in ProjectB (ProjectB is the main library) and used it for
> testing which is why I need to 'create'/ import the nodes.. Am I very wrong
> in this aspect, for unit-testing part?
>
> At least that is how I test it if I am opening a Maya session..
>
> --
> 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/b362ec0e-4f45-4c5c-a413-903ca39ffafa%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/b362ec0e-4f45-4c5c-a413-903ca39ffafa%40googlegroups.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/CAPGFgA035TfRQuramqwAxjztuHaxq8wOkyfymnCrToUtTjGS-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to