[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 everything runs correctly in your makestairs() then 
> you return True, and then check against the returned variable. Bit nicer 
> then passing values to and from different method scopes.
>
> if stairs >= 1:
> checkTest = makestairs()
> 
> if checkTest: 
> distributeStairs()
>
>
> Also noticed that you are setting checkTest over a hundred times as you 
> have it running in the loop, maybe move it out of the loop. So that it only 
> gets run once all the stairs are built. I would also recommend passing 
> values into a method, instead of just accessing them from a different 
> scope, this can result in bugs, and it a bit ugly.
>
> def makestairs(staris)
> # code here
>
> def distributeStairs(stairs):
>  # code here
>
> if checkTest: 
> distributeStairs(stairs)
>
> I hope that helps
>
>
> On Friday, 15 September 2017 08:56:17 UTC+10, jettam wrote:
>>
>> 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 I think the script should follow A,B,C,D (see attached image) Am I 
>> missing something ? 
>>
>>
>> 
>>
>>
>> Here is the code:
>> import maya.cmds as mc
>> import random
>>
>> def distributeObjects(stairs=None):
>> ''' This will make and randomly distribute a spiralStaircase '''
>> 
>> checkTest = 0
>> 
>> def makestairs():
>> ''' first make one spiral staircase '''
>> # make a dictionary
>> steps = {'name':'Step','slide':5,'rotations':10,'spacing':1,
>> 'stepDepth':2,'stepHeight':.75} 
>> stepName=steps.get('name')
>> # make masterGroup
>> groupAllSteps = mc.group(name="Group"+stepName+"s", empty=True)
>> for x in range (0,100):  
>> #make stairs
>> # make step
>> stepObj = mc.polyCube(name=stepName+"#", w=5, h=steps.get(
>> 'stepHeight'), d=steps.get('stepDepth'), ch=0)
>> # make group
>> stepGrp = mc.group(empty=True, name=stepName+'_Grp#')
>> # parent stepObj to stepGrp
>> mc.parent(stepObj, stepGrp)
>> # rotate stepGrp
>> mc.xform(stepGrp, ro=(0,(steps.get('rotations')*x),0))
>> # transform stepObj
>> mc.xform(stepObj[0], t=(steps.get('slide'),steps.get(
>> 'stepHeight')*steps.get('spacing')*x,0))
>> # parent stepObj to masterGroup 
>> mc.parent(stepObj, groupAllSteps)
>> # delete stepGrp
>> mc.delete(stepGrp)
>> checkTest = 1
>> 
>> def distributeStairs():
>> ''' duplicate the pre-made spiral staircase X amount of times, 
>> and randomly distribute them '''
>> for i in range (stairs): 
>> trX = random.uniform(-30,30)
>> trY = random.uniform(-30,30)
>> trZ = random.uniform(-30,30)
>> newGroup = mc.duplicate(GroupSteps,name=GroupSteps+i)
>> mc.setAttr(newGroup+".translate",trX,trY,trZ,type='double3')
>>
>> if stairs >= 1:
>> makestairs()
>> 
>> if checkTest == 1: 
>> distributeStairs()
>>
>>
>> distributeObjects(3)
>>
>>
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/edd70e60-7403-4874-9cd6-3d6038333416%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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
> import maya.mel as mel
> cmds.savePrefs(general=True) # This saves tab names, among other stuff.
> mel.eval('syncExecuterBackupFiles') # This saves tab contents.
>
>
>
> On Thursday, 14 September 2017 19:54:15 UTC+10, simon payne wrote:
>>
>> 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 even though they do not auto load into 
>> maya's script editor.
>>
>> Also, in your [usr]/windows/temp dir you can often recover script temp 
>> files from there that are not in your scriptEditorTemp dir or were not 
>> commited by saving prefs or clising/opening mayas script editor following a 
>> crash.
>>
>> Simon
>>
>> Sent from my iPhone
>>
>> On 14 Sep 2017, at 08:42, Simon Anderson  wrote:
>>
>> 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 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 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 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 and stop receiving emails from it, send an 
>> email to python_inside_maya+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/9f82d1cb-d015-47f7-a09f-c6c3fb1eaf20%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/82469a57-0980-4aa0-9113-5ee9b994cc83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAENXMtFcAQ1-r4f4J%2BvxeMkmLc0DcPHnX06g1tuQ6XsSe1D3zg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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.
>
> Basically they are doing:
>
> sys.path = list(set(sys.path) | set(os.environ.get('PYTHONPATH', 
> '').split(os.pathsep)))
>
> The idea is that they are trying to eliminate duplicates, which this does, 
> but because they are putting everything into sets, it scrambles the order.
>
>
> On Friday, September 8, 2017 at 8:23:24 PM UTC-5, Justin Israel wrote:
>>
>> Its set by Maya's default environment variables, which can be modified in 
>> the Maya.env
>>
>> https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Maya/files/Environment-Variables-File-path-variables-htm.html
>>
>> Specifically, the PYTHONHOME dictates the root for the python standard 
>> library being injected into the PYTHONPATH 
>>
>> On Sat, Sep 9, 2017, 1:05 PM jettam  wrote:
>>
>>> Would someone be able to tell me what file maya is sourcing to find this 
>>> list. For example if I type "import sys" "sys.path" I get a list of all the 
>>> folders maya looks in. 
>>>
>>> import sys
>>> sys.path
>>> # Result: ['',
>>>  'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\cafm',
>>>  'C:\\Program Files\\Autodesk\\Maya2017\\bin',
>>>  'C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\MASH\\scripts\\MASH',
>>>  'C:\\Program 
>>> Files\\Autodesk\\Maya2017\\plug-ins\\bifrost\\scripts\\boss',
>>>  'C:\\solidangle\\mtoadeploy\\2017\\scripts',
>>>
>>> Thanks you. 
>>>
>>> -- 
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/python_inside_maya/126bafad-d182-49d3-b552-36932b6a1646%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/3b5969ac-65a0-4ae4-a9bc-45151ac0bf76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 variable. Bit nicer 
then passing values to and from different method scopes.

if stairs >= 1:
checkTest = makestairs()

if checkTest: 
distributeStairs()


Also noticed that you are setting checkTest over a hundred times as you 
have it running in the loop, maybe move it out of the loop. So that it only 
gets run once all the stairs are built. I would also recommend passing 
values into a method, instead of just accessing them from a different 
scope, this can result in bugs, and it a bit ugly.

def makestairs(staris)
# code here

def distributeStairs(stairs):
 # code here

if checkTest: 
distributeStairs(stairs)

I hope that helps


On Friday, 15 September 2017 08:56:17 UTC+10, jettam wrote:
>
> 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 I think the script should follow A,B,C,D (see attached image) Am I 
> missing something ? 
>
>
> 
>
>
> Here is the code:
> import maya.cmds as mc
> import random
>
> def distributeObjects(stairs=None):
> ''' This will make and randomly distribute a spiralStaircase '''
> 
> checkTest = 0
> 
> def makestairs():
> ''' first make one spiral staircase '''
> # make a dictionary
> steps = {'name':'Step','slide':5,'rotations':10,'spacing':1,
> 'stepDepth':2,'stepHeight':.75} 
> stepName=steps.get('name')
> # make masterGroup
> groupAllSteps = mc.group(name="Group"+stepName+"s", empty=True)
> for x in range (0,100):  
> #make stairs
> # make step
> stepObj = mc.polyCube(name=stepName+"#", w=5, h=steps.get(
> 'stepHeight'), d=steps.get('stepDepth'), ch=0)
> # make group
> stepGrp = mc.group(empty=True, name=stepName+'_Grp#')
> # parent stepObj to stepGrp
> mc.parent(stepObj, stepGrp)
> # rotate stepGrp
> mc.xform(stepGrp, ro=(0,(steps.get('rotations')*x),0))
> # transform stepObj
> mc.xform(stepObj[0], t=(steps.get('slide'),steps.get(
> 'stepHeight')*steps.get('spacing')*x,0))
> # parent stepObj to masterGroup 
> mc.parent(stepObj, groupAllSteps)
> # delete stepGrp
> mc.delete(stepGrp)
> checkTest = 1
> 
> def distributeStairs():
> ''' duplicate the pre-made spiral staircase X amount of times, 
> and randomly distribute them '''
> for i in range (stairs): 
> trX = random.uniform(-30,30)
> trY = random.uniform(-30,30)
> trZ = random.uniform(-30,30)
> newGroup = mc.duplicate(GroupSteps,name=GroupSteps+i)
> mc.setAttr(newGroup+".translate",trX,trY,trZ,type='double3')
>
> if stairs >= 1:
> makestairs()
> 
> if checkTest == 1: 
> distributeStairs()
>
>
> distributeObjects(3)
>
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/af26c846-7446-4ecd-9067-5c37d8f04fa5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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('syncExecuterBackupFiles') # This saves tab contents.



On Thursday, 14 September 2017 19:54:15 UTC+10, simon payne wrote:
>
> 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 even though they do not auto load into 
> maya's script editor.
>
> Also, in your [usr]/windows/temp dir you can often recover script temp 
> files from there that are not in your scriptEditorTemp dir or were not 
> commited by saving prefs or clising/opening mayas script editor following a 
> crash.
>
> Simon
>
> Sent from my iPhone
>
> On 14 Sep 2017, at 08:42, Simon Anderson  > wrote:
>
> 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 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 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 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 and stop receiving emails from it, send an 
> email to python_inside_maya+unsubscr...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/python_inside_maya/9f82d1cb-d015-47f7-a09f-c6c3fb1eaf20%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/429a978b-65d3-4cd4-a6f5-9c862bfebf39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 I think the script should follow A,B,C,D (see attached image) Am I 
missing something ? 




Here is the code:
import maya.cmds as mc
import random

def distributeObjects(stairs=None):
''' This will make and randomly distribute a spiralStaircase '''

checkTest = 0

def makestairs():
''' first make one spiral staircase '''
# make a dictionary
steps = {'name':'Step','slide':5,'rotations':10,'spacing':1,
'stepDepth':2,'stepHeight':.75} 
stepName=steps.get('name')
# make masterGroup
groupAllSteps = mc.group(name="Group"+stepName+"s", empty=True)
for x in range (0,100):  
#make stairs
# make step
stepObj = mc.polyCube(name=stepName+"#", w=5, h=steps.get(
'stepHeight'), d=steps.get('stepDepth'), ch=0)
# make group
stepGrp = mc.group(empty=True, name=stepName+'_Grp#')
# parent stepObj to stepGrp
mc.parent(stepObj, stepGrp)
# rotate stepGrp
mc.xform(stepGrp, ro=(0,(steps.get('rotations')*x),0))
# transform stepObj
mc.xform(stepObj[0], t=(steps.get('slide'),steps.get(
'stepHeight')*steps.get('spacing')*x,0))
# parent stepObj to masterGroup 
mc.parent(stepObj, groupAllSteps)
# delete stepGrp
mc.delete(stepGrp)
checkTest = 1

def distributeStairs():
''' duplicate the pre-made spiral staircase X amount of times, and 
randomly distribute them '''
for i in range (stairs): 
trX = random.uniform(-30,30)
trY = random.uniform(-30,30)
trZ = random.uniform(-30,30)
newGroup = mc.duplicate(GroupSteps,name=GroupSteps+i)
mc.setAttr(newGroup+".translate",trX,trY,trZ,type='double3')

if stairs >= 1:
makestairs()

if checkTest == 1: 
distributeStairs()


distributeObjects(3)



-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/ace92d3c-a34f-4a22-bc16-040f70e39715%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, 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 makeSpiralStairs(name = 'Step', slide = 5, rotations = 10, 
> spacing = 1, stepDepth = 2, stepHeight = 0.75 ), delete the line with the 
> dictionary steps and just replace steps.get() with the relevant keyword, 
> e.g steps.get('name') change to name.
>
> It won't affect your code as you can still run makeSpiralStairs() on line 
> 74 as it will take your keyword argument default values.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/c4bfd56a-9908-4fe9-b7b6-b5ba433b455a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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*


With Arabic Subtitles





*موقع اليوتيوب الذي عرض جلسة استماع الكونجرس الأمريكي *

* لمتابعة نشاطات غسل الأموال ونشاطات*



*السعودي معن عبدالواحد الصانع*



*مالك مستشفى  وشركة سعد  ومدارس سعد بالمنطقة الشرقية بالسعودية   ورئيس مجلس
ادارة بنك اوال البحريني*



*مترجم باللغة العربية*



http://www.youtube.com/watch?v=mIBNnQvhU8s

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAH%3DZeA5Pdsek4y_dEip9au%2BT2TvcH%2B6ayuKDn9bXttibMrnrxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 makeSpiralStairs(name = 'Step', slide = 5, rotations = 10, 
spacing = 1, stepDepth = 2, stepHeight = 0.75 ), delete the line with the 
dictionary steps and just replace steps.get() with the relevant keyword, 
e.g steps.get('name') change to name.

It won't affect your code as you can still run makeSpiralStairs() on line 
74 as it will take your keyword argument default values.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/ddea3a27--4330-ad99-89d09f51898f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 even though they do not auto load into maya's script 
editor.

Also, in your [usr]/windows/temp dir you can often recover script temp files 
from there that are not in your scriptEditorTemp dir or were not commited by 
saving prefs or clising/opening mayas script editor following a crash.

Simon

Sent from my iPhone

> On 14 Sep 2017, at 08:42, Simon Anderson  wrote:
> 
> 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 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 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 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 and stop receiving emails from it, send an 
> email to python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/python_inside_maya/9f82d1cb-d015-47f7-a09f-c6c3fb1eaf20%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/B0BE79E5-CF6B-47DA-BF9B-BB5F74D40733%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 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 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 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 and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/9f82d1cb-d015-47f7-a09f-c6c3fb1eaf20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.