I remember that there is a time when I tried using shelfTabLayout (http://download.autodesk.com/us/maya/2011help/CommandsPython/shelfTabLayout.html), I wrote it in a similar fashion as the code above, however the changes would be integrating the shelfTabLayout into the code.
Not sure if I am making sense, basically, I wrote it separately, one for the shelfTabLayout and the other for the actual UI. I am unable to remember how I wrote, but there is a time where it kinda works but it is not storing the shelf icons I added in if I closed off my Maya session or the UI itself. Then again, I am a bit stumped if I should add this into my UI, or should I add in other stuff? Currently I only have a viewport, outliner and hyperPanel in my UI On Thursday, August 14, 2014 2:31:56 PM UTC+8, Justin Israel wrote: > > Sure. Your application can choose to store any kind of data it wants to, > persistently, between launches. So if you want it to be able to store user > commands, then you just have to decide where you are going to keep them. > > > On Thu, Aug 14, 2014 at 6:19 PM, likage <[email protected] <javascript:> > > wrote: > >> I see. >> >> Just one last question though, using my current code, is it possible to >> have a tab where users can create and saved in their custom commands into >> this ui of mine instead of having it in the shelf? >> >> >> >> >> On Thursday, August 14, 2014 10:22:03 AM UTC+8, Justin Israel wrote: >> >>> They aren't in the docs because they actually aren't part of the API >>> proper: >>> >>> whatIs GraphEditor; >>> // Result: Run Time Command // >>> whatIs TextureViewWindow; >>> // Result: Run Time Command // >>> >>> >>> >>> >>> On Thu, Aug 14, 2014 at 2:07 PM, likage <[email protected]> wrote: >>> >>>> HI, if that is the case, there are a few commands that I have tried >>>> like cmds.GraphEditor() however I am unable to find any documentation on >>>> it >>>> despite that I am able to run it in the script editor. Tried incorporating >>>> it into my code, same problem as listed in my first post. >>>> >>>> So can I just assume that it is having the same description as this >>>> Texture Editor? >>>> >>>> >>>> >>>> On Wednesday, August 13, 2014 4:03:18 AM UTC+8, Justin Israel wrote: >>>> >>>>> The cmds.TextureViewWindow() doesn't return anything. It only shows >>>>> the singleton texture editor. The docs say only one can exist at any time: >>>>> http://download.autodesk.com/global/docs/maya2012/en_us/Comm >>>>> andsPython/textureWindow.html >>>>> >>>>> This would mean that if you were to embed it into your own UI, it >>>>> would steal from anywhere else that is showing it, and likewise if >>>>> anywhere >>>>> else wanted to show it, your UI would lose the widget. >>>>> >>>>> >>>>> >>>>> On Tue, Aug 12, 2014 at 11:06 PM, likage <[email protected]> wrote: >>>>> >>>>>> >>>>>> >>>>> >>>> >>> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/0710b9cf-b6a6-4a60-9a15-82fe38c26efa%40googlegroups.com >> >> <https://groups.google.com/d/msgid/python_inside_maya/0710b9cf-b6a6-4a60-9a15-82fe38c26efa%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/1a347e0d-f134-4aee-8acc-5a6f781d59a9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
