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

Reply via email to