Hi, I'm new to Python programming in Maya, actually really new, in other words I won't be as active for a while. In the meantime I was hoping someone can help me with a script to iron out a problem ?
--
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/4d7e3e6b-c7d6-48d6-8efc-3e5be871c237%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi
Welcome to the group!
We have plenty of members here that are just getting started. Feel free to ask questions. Just do your best to ask focused questions with examples of what you tried and what you expected, and you should be able to receive focused answers. And put long code samples in a pastebin link (or avoid long code samples)
If it's getting started with Python in general, it will also help to go through some basic tutorials first before asking the group about fundamental python.
Enjoy!
--
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/CAPGFgA11XVove2-nh7-mkAi0-Uwq4GsTAb%2Bc2Zfgo9j9Bk4rUA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5471813B.7080009%40gmail.com.
Post the script on a pastebin. Copy what you did and the errors your are getting. Can't help until we see something.
--
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/CAPGFgA230Z1eig3dP%3D_9stdxgDGhoH1wHgz6C4X8xDRczgh5Bg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5472110C.2060500%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCtA2TbONjDHKJEVtgCA-fxhrN4VLUCG9xUkXYYsmY7PQ%40mail.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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCK-4ieEtTFFqCjALz42mvdzmnmTztD8LfwJYraCSj9fw%40mail.gmail.com.
Presumably the tool is trying to write out a data file to your C: drive, and does not have permission.
Without the link to the source, I can't be sure, but is there an input for telling it where to store this file? Apparently your C: root is not a sufficient location.
--
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/CAPGFgA2jjvMuy642OJ4%2BzgdsfisnWboSVEkRW0Hnk%3DEo%3D4Ho6Q%40mail.gmail.com.
Crest, I would love nothing more than to help you solve this problem, but you're not making it very easy.If you have a look at some of the other questions in this list, or on StackOverflow, you'll find that the best thing for you to do would be for you to share an isolated snippet of code with the problem. That way, I could more easily determine what may be causing this issue.Also, for the best possible answers, I would strongly suggest skimming this.
--
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/CAFRtmOCtA2TbONjDHKJEVtgCA-fxhrN4VLUCG9xUkXYYsmY7PQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
dood. just post the code that's in the script.
--
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/703ecba4-4c1f-4a96-a5be-e56a1afa55fd%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAssL7Zy6zAp5HZpcwweZnmk7Z5MC4JRHMXfB1G9nCxgoqBDzg%40mail.gmail.com.
Presumably the tool is trying to write out a data file to your C: drive, and does not have permission.
Without the link to the source, I can't be sure, but is there an input for telling it where to store this file? Apparently your C: root is not a sufficient location.
--
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/CAPGFgA2jjvMuy642OJ4%2BzgdsfisnWboSVEkRW0Hnk%3DEo%3D4Ho6Q%40mail.gmail.com.
Crest, I would love nothing more than to help you solve this problem, but you're not making it very easy.If you have a look at some of the other questions in this list, or on StackOverflow, you'll find that the best thing for you to do would be for you to share an isolated snippet of code with the problem. That way, I could more easily determine what may be causing this issue.Also, for the best possible answers, I would strongly suggest skimming this.
--
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/CAFRtmOCtA2TbONjDHKJEVtgCA-fxhrN4VLUCG9xUkXYYsmY7PQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/54756976.4030509%40gmail.com.
Hello Christopher,Cheers,
try replacing C: (__file__.split('\\')[0]) for you user's home path,
maybe that way you can check if the problem is with writing permissions.
where it says (uistates.py line 9)class UiStates():filename = 'config.uvd'path = __file__.split('\\')[0]+'/'change it to:path = os.environ['HOMEDRIVE']+os.environ['HOMEPATH'].replace('\\','/')+'/'class UiStates():filename = 'config.uvd'#path = __file__.split('\\')[0]+'/'
Eduardo
--
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/CACt6GrmH0txJWtJbPjk%2ByCQXhhuLZLtHqNRoPwVBmOtCaeD-SA%40mail.gmail.com.
os.environ['HOMEDRIVE']+os.environ['HOMEPATH'].replace('\\','/')+'/'
Ugh, don’t do manual path concatenation! :)
import os
path = os.path.join(os.environ['HOMEDRIVE'], os.environ['HOMEPATH'])
Better yet, use expanduser
import os
path = os.path.expanduser("~")
That way it isn’t dependent on Windows.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5475E91E.9070709%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5475E91E.9070709%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBJ%2Brkthz1%3Dk1pSZMCM%3D6nY_L3CB2Do9q8p2bXq396QZg%40mail.gmail.com.
Ugh, don’t do manual path concatenation! :)
import os
path = os.path.join(os.environ['HOMEDRIVE'], os.environ['HOMEPATH'])Better yet, use
expanduserimport os
path = os.path.expanduser("~")That way it isn’t dependent on Windows.
--
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/CAFRtmOBJ%2Brkthz1%3Dk1pSZMCM%3D6nY_L3CB2Do9q8p2bXq396QZg%40mail.gmail.com.