The last line of the traceback is a pretty good indication:
# IOError: [Errno 13] Permission denied: 'D:/Scripts/Daz_Tools/Beta' #

You have limited permissions on that location, which it is trying to read to 
parse your UI file.



On Nov 9, 2012, at 5:28 PM, Daz wrote:

> Heya
> 
> Just run in to weird issue... It works fine at work but not at home not, I 
> did try to install python and other files the same as I did at work... Any 
> idea why I get this error when starting script maybe?
> 
> http://pastebin.com/ANuZ43a6
> 
> Thanks, bye.
> 
> On Friday, 9 November 2012 17:36:22 UTC, Justin Israel wrote:
> Awesome! May your button coding experience be dynamic, and rewarding!
> 
> On Nov 9, 2012, at 9:19 AM, Daz wrote:
> 
>> Uh true ! 
>> 
>> Here we go... just the part with self.btnCut button that I'm trying to add 
>> to list that dont want to work... :/
>> 
>> 
>> http://pastebin.com/vLuGfMcf
>> 
>> On Friday, 9 November 2012 17:10:33 UTC, Justin Israel wrote:
>> What are you using for an editor? It seems that you are just having 
>> copy/paste errors and maybe a mixture of spaces vs tabs.
>> Your best bet is to not use the emails for code. Make use of either 
>> pastebin.com, or https://gist.github.com/, or any online code site where 
>> people can look at a large amount of code with proper indents.
>> It will help you avoid the indent problem.
>> 
>> 
>> 
>> On Nov 9, 2012, at 8:58 AM, Daz wrote:
>> 
>>> Heya
>>> 
>>> Yay that runs like dream, I've edited beginning slightly to use my general 
>>> folder structure and so on and so far I/you got the button working ! :) 
>>> 
>>> The steps start now that I want to hock up second button... for some reason 
>>> I get error with this part of code... any hints why ? :/
>>> 
>>> # when click this button, run function "btallClicked" 
>>> self.btnAllLightSettings.clicked.connect( self.btnAllLightSettingsClicked )
>>> self.btnCut.clicked.connect( self.btnCutClicked )
>>> 
>>> # show the UI 
>>> self.show() 
>>> 
>>> 
>>> def btnAllLightSettingsClicked( self ):
>>> #anything you want. Let's say, create a sphere 
>>> settings_Lights.allSettings() 
>>> 
>>> def btnCutClicked(self):
>>> settings_Lights.sampleMax
>>> 
>>> I end up with 
>>> 
>>> # Error: unexpected indent
>>> # File "<maya console>", line 48
>>> # self.btnCut.clicked.connect( self.btnCutClicked )
>>> # ^
>>> # IndentationError: unexpected indent # 
>>> 
>>> which is very strange. It appears just after I past the second 
>>> self.btnCut.clicked command. Can I stack them together 1 after another or 
>>> is there some more complex way of loading them up? :s
>>> 
>>> I thought I have to script a command for each button for each function to 
>>> happen... 
>>> 
>>> On Friday, 9 November 2012 15:32:11 UTC, Panupat Chongstitwattana wrote:
>>> grr... forgot parentesis
>>> 
>>> import daz
>>> reload(daz)
>>> 
>>> daz.launch()
>>> 
>>> 
>>> 
>>> -- 
>>> view archives: http://groups.google.com/group/python_inside_maya
>>> change your subscription settings: 
>>> http://groups.google.com/group/python_inside_maya/subscribe
>> 
>> 
>> -- 
>> view archives: http://groups.google.com/group/python_inside_maya
>> change your subscription settings: 
>> http://groups.google.com/group/python_inside_maya/subscribe
> 
> 
> -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to