Re: [Maya-Python] Re: What am I missing here.

2017-09-14 Thread Marcus Ottosson
Just want to say, Justin, I think it's great how you're approaching Python. Lots of small, well articulated problems with a great attitude towards those helping you and the problem itself. This is how you learn a new skill the quickest whilst providing those around you with challenges to solve. You

[Maya-Python] Re: What am I missing here.

2017-09-14 Thread jettam
Thanks ! :) On Thursday, September 14, 2017 at 5:02:02 PM UTC-7, Simon Anderson wrote: > > Hey, the only thing that looks a bit suspect to me is the way you are > setting a variable that is outside of the method. The scope of the variable > may be incorrect. > > Can I suggest that if everythi

Re: [Maya-Python] recover scripting work after a crash ?

2017-09-14 Thread jettam
This is good to know, thanks.. On Thursday, September 14, 2017 at 4:41:17 PM UTC-7, Michael Boon wrote: > > If you're doing something you suspect might crash Maya, you can save the > Script Editor without closing Maya, like this: > # Save contents of Script Editor > import maya.cmds as cmds > im

Re: [Maya-Python] Re: importing geometry caches issue

2017-09-14 Thread river bell
Hi, Luke Embarrassing as it may be, it turned out to be a double and a single backslash problem. My path had double backslash, in the peice of code I was trying inside Maya. In my batch it was handled by os.path.normpath and join functions. Thanks Warm regards *Riverbell* -- You received this

Re: [Maya-Python] where is does maya source the python scripts from.

2017-09-14 Thread Robert White
So it looks like 2018.1 has potentially fixed this. I've not yet tried the update, but it made it onto the release notes. On Friday, September 8, 2017 at 9:26:34 PM UTC-5, Robert White wrote: > > Also, a fun fact, starting with Maya 2017, the import paths are scrambled > during startup by maya.

[Maya-Python] Re: What am I missing here.

2017-09-14 Thread Simon Anderson
Hey, the only thing that looks a bit suspect to me is the way you are setting a variable that is outside of the method. The scope of the variable may be incorrect. Can I suggest that if everything runs correctly in your makestairs() then you return True, and then check against the returned vari

Re: [Maya-Python] recover scripting work after a crash ?

2017-09-14 Thread Michael Boon
If you're doing something you suspect might crash Maya, you can save the Script Editor without closing Maya, like this: # Save contents of Script Editor import maya.cmds as cmds import maya.mel as mel cmds.savePrefs(general=True) # This saves tab names, among other stuff. mel.eval('syncExecuterBac

[Maya-Python] What am I missing here.

2017-09-14 Thread jettam
I am trying to write a function that will first make a spiral staircase, and then distribute the staircase randomly. I can get this script to generate only one spiral staircase, but it stops there. I can't get it to duplicate and distribute multiples of these. I have attached a logic path that

Re: [Maya-Python] Could someone help me solve this error

2017-09-14 Thread jettam
This is probably a good idea, I am still learning Python, (baby steps for now) On Thursday, September 14, 2017 at 6:13:06 AM UTC-7, Neil Roche wrote: > > Also, is there a reason why you are using the dictionary steps for all > your values? It's hardcoded so you can't change any of the values,

Re: [Maya-Python] Fwd: Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع

2017-09-14 Thread Ravi Jagannadhan
You know, reading this, I wonder if I'm on a list now On Thu, Sep 14, 2017 at 12:39 PM, sami kamal wrote: > > > > > > > YouTube videos of > > > > U.S. Congress money laundering hearing > > > of > > Saudi Billionaire " Maan Al sanea" > > with *bank of America* > > > and The owner of Saa

[Maya-Python] Fwd: Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع

2017-09-14 Thread sami kamal
YouTube videos of U.S. Congress money laundering hearing of Saudi Billionaire " Maan Al sanea" with *bank of America* and The owner of Saad Hospital and Schools in the Eastern Province in *Saudi Arabia* and the Chairman of the Board of Directors of Awal Bank in *Bahrain* Wit

Re: [Maya-Python] Could someone help me solve this error

2017-09-14 Thread Neil Roche
Also, is there a reason why you are using the dictionary steps for all your values? It's hardcoded so you can't change any of the values, so if you wanted a variation you would have to rewrite the code. You could try using keyword arguments in your function makeSpiralStairs(), for example make

Re: [Maya-Python] recover scripting work after a crash ?

2017-09-14 Thread Simon Payne
This is not entirely true. Your script editor remp files are stored in [usr]/docs/maya/maya-20xx/prefs/scrptEditorTemp/ The files can be openned in any text editor. Sometimes, because of multi sessions of maya at the same time or re-installs, the scripts you were working on can be found in there

Re: [Maya-Python] recover scripting work after a crash ?

2017-09-14 Thread Simon Anderson
Like Marcuss mentioned, its gone for good. I try dev in an IDE and then just import and refresh the module in Maya. That way you dont get caught out by Maya not playing nice. On Thursday, 14 September 2017 15:24:38 UTC+10, jettam wrote: > > Well since I'm learning, this will only make me stronge