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..
However, if I run the same code in Maya editor, it is working perfectly fine.
So my question here would be:
1. How would I know what items are created in each scene (as mentioned in the site)?
2. Is it a reliable method that I tested my code in maya (just to check a few process) then copy into the testing? In the above example, I am already getting a failing result..
--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/6b090880-7b39-46ee-8140-ace2c618c89b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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
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 rightWhy 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?
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/b362ec0e-4f45-4c5c-a413-903ca39ffafa%40googlegroups.com.
Also, another option is to create test scenes
There. Removed assumptions. :)
On Fri, 12 Aug 2016, 5:55 AM likage <dissid...@gmail.com> 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 rightWhy 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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/b362ec0e-4f45-4c5c-a413-903ca39ffafa%40googlegroups.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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA035TfRQuramqwAxjztuHaxq8wOkyfymnCrToUtTjGS-g%40mail.gmail.com.