On Mon, Feb 20, 2017 at 4:48 PM CGSKOOL Professional Computer Graphics
Training <[email protected]> wrote:
> Hi friends i was try to learn python in maya and was find a code but i
> can't made it work, the error its in the 21 line with srt function, could
> some people help me with this,i don't k now what else to d, thank you.
>
> somebody know wo it work the srt function?
>
In the code example you have provided, there is no definition of a srt()
function, but I would assume it is some kind of function that returns a
string. This is the reason you are probably seeing an error. You seem to
have incomplete code.
In the future if you are having issues with code, it also helps to include
an error message so that we can be sure that we are all thinking about the
same problem. Are you certain this code example is complete?
>
> import maya.cmds as cmds
>
> class TabExample:
>
> def __init__(self):
>
> self.win = cmds.window(title="Tabble layout", wh=(300,300))
>
> self.tabs = cmds.tabLayout()
>
> firstTab = cmds.columnLayout()
> cmds.tabLayout(self.tabs, edit=True, tabLabel=[firstTab,
> 'simpleTab'])
> cmds.button(label ="button")
> cmds.setParent("..")
>
> newLayout = cmds.scrollLayout()
> cmds.tabLayout(self.tabs, edit=True, tabLabel=[newLayout,
> 'ScrollingTab'])
> cmds.columnLayout()
>
> for i in range (10):
> cmds.button(label ="button" + srt(i+1))
>
> cmds.setParent("..")
> cmds.setParent("..")
>
> cmds.showWindow(self.win)
>
> TabExample()
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/7cfbd48b-d319-4900-9d7d-63a32612eb1e%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/7cfbd48b-d319-4900-9d7d-63a32612eb1e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0nZaUR6toS6YssWJZ7hevpKFw5j87TUUmWig9MXkXDow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.