Re: [Maya-Python] Getting the original shader assignment

2016-10-06 Thread Justin Israel
On Fri, Oct 7, 2016 at 2:08 PM likage wrote: > Was wondering if anyone has any good ways for approaching this problem of > mine... > > > I have a few rigs in which it is a reference. I am trying to do some > shader-assignment that targets for a certain name in these rigs.

[Maya-Python] Getting the original shader assignment

2016-10-06 Thread likage
Was wondering if anyone has any good ways for approaching this problem of mine... I have a few rigs in which it is a reference. I am trying to do some shader-assignment that targets for a certain name in these rigs. In my UI, if the user selects a certain color in the combobox, it will

Re: [Maya-Python] Re: workspaceControl in 2017

2016-10-06 Thread Marcus Ottosson
That should be a problem Oh! Haha, I meant to say “should*n’t*“. How rude and sarcastic it made me sound just now. Sorry about that. :) ​ On 6 October 2016 at 19:28, Andrew Hazelden wrote: > Hi MarkJ. > > I wanted to comment about your minimum width setting in the

[Maya-Python] Re: workspaceControl in 2017

2016-10-06 Thread Andrew Hazelden
Hi MarkJ. I wanted to comment about your minimum width setting in the code sample you provided. According to the workspaceControl documentation that should be a boolean value so

Re: [Maya-Python] workspaceControl in 2017

2016-10-06 Thread Marcus Ottosson
managing PySide builds That should be a problem, Maya ships with PySide since quite a while back. ​ -- 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

Re: [Maya-Python] workspaceControl in 2017

2016-10-06 Thread Mark Jackson
Unfortunately I'm trying to keep this UI in cmds so that for the openSource build of the tools I don't have to get into managing PySide builds, that said I suspect this may only be fixable in QT.. On 6 October 2016 at 12:14, Justin Israel wrote: > > > On Thu, 6 Oct 2016,

Re: [Maya-Python] workspaceControl in 2017

2016-10-06 Thread Justin Israel
On Thu, 6 Oct 2016, 10:24 PM Mark Jackson wrote: > Hi all, > > I'm trying to switch some of our base toolset so that the main UI (cmds > built) now docks correctly in the same tab as the channelBox rather than > docking to the right side of the main Maya UI. The ChannelBox is

Re: [Maya-Python] Re: [python] which library using to read / write huge amount of data

2016-10-06 Thread Marcus Ottosson
Cool :) About reading in a file, a little bit at a time, it’s not as difficult as it seems. f = open("100gb.json") At this point, you’ve opened a file of an imaginary 100 gigabytes. What is the effect on memory? 0. Nada. Now, if you were to this.. data = f.read() You’d be in trouble. Now

[Maya-Python] workspaceControl in 2017

2016-10-06 Thread Mark Jackson
Hi all, I'm trying to switch some of our base toolset so that the main UI (cmds built) now docks correctly in the same tab as the channelBox rather than docking to the right side of the main Maya UI. The ChannelBox is now a workspaceControl so I havce to call the UI through that as below, it's a

Re: [Maya-Python] Re: [python] which library using to read / write huge amount of data

2016-10-06 Thread fruity
actually, the file would be split into 2 parts : the first one would be the infos that i want the user to be able to modify (a couple of lines), the second one would be a text of n lines (n being a number of vertices for a mesh, for instance), that the user will definetly not modify. So you're

Re: [Maya-Python] Python screenshot

2016-10-06 Thread Marcus Ottosson
There’s always trusty old Qt. # From within Mayaimport osfrom PySide.QtGui import QPixmap, QApplication app = QApplication.instance() screenshot = QPixmap.grabWindow(app.desktop().winId()) screenshot.save(os.path.expanduser("~/screenshot.jpg"), "jpg") It can do regions too. ​ On 6 October 2016

[Maya-Python] Python screenshot

2016-10-06 Thread Arjun Thekkummadathil
Hi Anyone knows any existing library or quick method to do a screenshot using python. I should be able to select a region to be screen grabbed. Am looking for an option on windows. thanks Arjun -- You received this message because you are subscribed to the Google Groups "Python Programming

Re: [Maya-Python] Re: [python] which library using to read / write huge amount of data

2016-10-06 Thread Marcus Ottosson
cPickle looks great If you want it to be human readable, you can’t encrypt, compress or otherwise obfuscate it, so both pickling and zlib is out. But think about that for a second. If you are talking about multi-megabyte/gigabytes worth of data, the mere quantity would make it uneditable