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

2017-09-13 Thread jettam
Well since I'm learning, this will only make me stronger Muwhahahaha!! On Wednesday, September 13, 2017 at 10:20:38 PM UTC-7, Marcus Ottosson wrote: > > As far as I know, no it doesn't. :( It's bitten me many times as well. I > don't think you can even copy the text, have Maya crash, and then pa

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

2017-09-13 Thread Marcus Ottosson
As far as I know, no it doesn't. :( It's bitten me many times as well. I don't think you can even copy the text, have Maya crash, and then paste it back. It'll go ahead and wipe the copy-buffer for you. It's out to get you! On 14 September 2017 at 05:51, jettam wrote: > If maya crashes is their

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

2017-09-13 Thread jettam
If maya crashes is their a way to recover the work that I have done in the script window ? Like does it save it in a temp folder somewhere ? -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group

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

2017-09-13 Thread river bell
Hi Luke, Thanks for chipping in !! I've already handled the Deformed suffix. My char is referenced, will try to import and retry when I reach work. Has it worked for you ? Will update here soon. Thanks again Warm Regards River -- You received this message because you are subscribed to the Google

Re: [Maya-Python] Re: Import blendShape attribute map

2017-09-13 Thread Todd Widup
I did nearly this exact thing like 4 years ago. same issues. what I ended up doing was bringin my imagemap in that I wanted to use for left/right splits, using it as a textures, then quering the UV position of each point and getting the color value from the image, and storing that into a list so t

[Maya-Python] Re: importing geometry caches issue

2017-09-13 Thread Luke Harris
Take a look at findChannelForObject() in doImportCacheFile.mel. It has a fairly common failure case when matching a channel name from the xml to a mesh in the scene - if the mesh has "..Deformed" on it it can fail. You could try match without the "Deformed" in those cases... if ($foundMatch == -

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

2017-09-13 Thread jettam
Ok thanks. I will revisit my notes on scope. On Wednesday, September 13, 2017 at 11:36:56 AM UTC-7, damonshelton wrote: > > The declaration of x is in the local scope of A. > The variable x inside makespiralstairs has no declaration because x is not > declared as global. Not a matter of order, i

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

2017-09-13 Thread damon shelton
The declaration of x is in the local scope of A. The variable x inside makespiralstairs has no declaration because x is not declared as global. Not a matter of order, it's a matter of scope. Passing x to the function will fix your issue. That or declare x as a global which I don't suggest. There's

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

2017-09-13 Thread jettam
Inc = str(x+1) has been defined in the earlier "for x in" command has it not ? I did another version earlier (with out a "for in" command in the second function). And this worked without having to put a x in the makeSpiralStairs() function. I made a order of events as I see it. (see the scr

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

2017-09-13 Thread damon shelton
Inc = str(x+1) X is not defined before this line X is defined when you execute the for x in range loop. You have to pass x into the makespiralstairs function to use it. X is a local variable On Wed, Sep 13, 2017 at 10:35 AM jettam wrote: > I thought I had defined it earlier, here: Then after

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

2017-09-13 Thread jettam
I thought I had defined it earlier, here: Then after that there is a call to the function makeSpiralStairs() for *x* in range(numRobots): AAA = random.uniform(-20,20) BBB = random.uniform(-20,20) CCC = random.uniform(-20,20) Grp2 = makeSpiralStairs()

[Maya-Python] Re: Import blendShape attribute map

2017-09-13 Thread Aren Voorhees
Actually, on second thought, before you spend anymore time thinking on this, I've decided to shift gears to tackle this tool - I was having a lot of problems using the artisan context stuff, so instead, I'm going to try a more "handmade" solution using the python api. Basically at this point,

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

2017-09-13 Thread damon shelton
You are using x inside of makespiralstairs function but not defining it or passing it in def makeSpiralStairs(x): Then passing x in when you call it On Wed, Sep 13, 2017 at 10:16 AM jettam wrote: > Could someone help me with this code. This function is supposed to build a > spiral staircase t

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

2017-09-13 Thread jettam
Could someone help me with this code. This function is supposed to build a spiral staircase then distribute it randomly X amount of times. I have been able to make it work with another object creation but I cant seem to figure this one out. Here is the error I am getting. And bellow is my code.

[Maya-Python] importing geometry caches issue

2017-09-13 Thread river bell
Hi all, I am trying to import geometry caches on a list of objects.I am exporting these as a single file. I am not able to use ths command : *pm.mel.doImportCacheFile(myCache, "", [objs], list())* I get the following error : *Channel names did not match selected objects.* Tried searching

Re: [Maya-Python] Re: Import blendShape attribute map

2017-09-13 Thread Aren Voorhees
Thanks for the responses guys - I cleaned up the path to use forward slashes and I *think* that should be working fine now. Unfortunately, I'm now having a new issue. Here is the current code: import maya.cmds as cmds # As Simon mentioned, I have the paint blendShape Weights tool open before

Re: [Maya-Python] Re: Import blendShape attribute map

2017-09-13 Thread Simon Anderson
Just gave it a try on a Windows machine, it works with only the single '/' On Wednesday, 13 September 2017 12:23:15 UTC+10, Simon Anderson wrote: > > Will have to give that a try when I get home. At the moment I'm on a Linux > box, and just double checked, singles dont seem to play fair > -- Y