Re: [Maya-Python] Procedural programming stairs. Have a RuntimeError saying my object is not found?

2015-08-10 Thread Justin Israel
There are function calls being used in the root of the file which are calling the query functions before the window has even been created: https://gist.github.com/anonymous/7e7324f48fec4f041b8b#file-gistfile1-txt-L71 https://gist.github.com/anonymous/7e7324f48fec4f041b8b#file-gistfile1-txt-L75 Wh

Re: [Maya-Python] Procedural programming stairs. Have a RuntimeError saying my object is not found?

2015-08-10 Thread Marcus Ottosson
The first link works, so long as you remove the .js suffix. It will link directly to the file instead. - https://gist.github.com/anonymous/7e7324f48fec4f041b8b If you save the file with a .py extension, you will also get Python syntax highlighting. ​ On 10 August 2015 at 22:05, Justin Israel

Re: [Maya-Python] Pyblish By Example

2015-08-10 Thread Marcus Ottosson
Much appreciated, Justin. Just what I'm looking for! Will edit and return with comments. On 10 August 2015 at 22:04, Justin Israel wrote: > Hey Marcus, > > Just a list of feedback as I read through it: > > * The quickstart showed 4 different plugin classes that were used. It > would be nice if y

Re: [Maya-Python] Re: Simple program with complicated problem! InternalVar issue?

2015-08-10 Thread Robert White
Or, if you're like me and don't ever remember how the %s formatting works: imagePath="{pth}icons/staircon.jpg".format(pth=mc.internalVar(userPrefDir=True)) or better yet, because it's a file path: import os imagePath= os.path.join(mc.internalVar(userPrefDir=True), 'icons', 'staircon.jpg') That

Re: [Maya-Python] Procedural programming stairs. Have a RuntimeError saying my object is not found?

2015-08-10 Thread Justin Israel
On Tue, Aug 11, 2015 at 7:52 AM Kate Sendall < kate.alicia.send...@googlemail.com> wrote: > Oh... ok. I'm very new to all this. I think this is what you're asking for? > > >> http://pastebin.com/sRdhU5HV >> >> Yep, the URL is exactly what you should use, like this. But now you need to do it one mo

Re: [Maya-Python] Pyblish By Example

2015-08-10 Thread Justin Israel
Hey Marcus, Just a list of feedback as I read through it: * The quickstart showed 4 different plugin classes that were used. It would be nice if you first just quickly said something like "pyblish has a number of task oriented classes to derive from. these 4 do xyz". Just a short sentence on the

Re: [Maya-Python] Re: Simple program with complicated problem! InternalVar issue?

2015-08-10 Thread noah mizrahi
*I would use python string formatting instead of the "+" operator.* *Try something like:* *imagePath="%sicons/staircon.jpg"%**mc.internalVar(userPrefDir=True)* *instead of:imagePath = mc.internalVar(userPrefDir=True) +'icons/stairIcon.jpg'* *More info:* *http://www.diveintopython.net/native

Re: [Maya-Python] Procedural programming stairs. Have a RuntimeError saying my object is not found?

2015-08-10 Thread Kate Sendall
Oh... ok. I'm very new to all this. I think this is what you're asking for? > http://pastebin.com/sRdhU5HV >> > -- 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

Re: [Maya-Python] Procedural programming stairs. Have a RuntimeError saying my object is not found?

2015-08-10 Thread Justin Israel
Please just give the normal url to a pastebin or gist. I'm using a mobile email client and can't use HTML embed codes On Tue, 11 Aug 2015 5:17 AM Kate Sendall wrote: > Wow. Just clicked it. Scratch that. > > > > On Monday, 10 August 2015 18:13:56 UTC+1, Kate Sendall wrote: >> >> Alrighty, here w

Re: [Maya-Python] Procedural programming stairs. Have a RuntimeError saying my object is not found?

2015-08-10 Thread Kate Sendall
Alrighty, here we go. I'm not sure how to use these embed things. I hope it works. XD https://gist.github.com/anonymous/7e7324f48fec4f041b8b.js";> -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from

Re: [Maya-Python] Procedural programming stairs. Have a RuntimeError saying my object is not found?

2015-08-10 Thread Kurian O.S
First thing don't use your style formatting to post code, its totally not readable :(. Can you put your code in pastebin or some other https://gist.github.com/ . It will much better. On Mon, Aug 10, 2015 at 9:41 AM, Kate Sendall < kate.alicia.send...@googlemail.com> wrote: > Here's my code so far

[Maya-Python] Procedural programming stairs. Have a RuntimeError saying my object is not found?

2015-08-10 Thread Kate Sendall
Here's my code so far. Ignore some of the code that doesn't seem to 'do' anything. It's a work in progress! The problem lies in a complete piece of code/script that *should *run. I'm putting blue lines in where I think the issue might be: *1.import maya.cmds as mc* * import pymel.core

[Maya-Python] Re: Simple program with complicated problem! InternalVar issue?

2015-08-10 Thread Kate Sendall
Are you kidding me? That's it! Thank you so much, haha. I was using an american set keyboard and a small screen. The two obviously don't mix well. Perfect answer. On Sunday, August 9, 2015 at 4:41:43 PM UTC+1, ABHIRAJ KK wrote: > > *Hi, kate * > > *check the icons "i" in ur code i think u have u

[Maya-Python] Pyblish By Example

2015-08-10 Thread Marcus Ottosson
Added a getting started guide to Pyblish, the test-driven content creation framework, that I'd like to share. It includes a Maya-specific example of a basic asset - a rig - along with how it can be published. - http://forums.pyblish.com/t/learning-pyblish-by-example I'm looking for insight on fir