Sorry if this is late info but, the Maya hasAttr is meant to check for the
existence of attributes on an object. But these are not functions as
everything in Maya command API are string references and you use function
calls only to perform certain operations on string references
Python has a simil
For libraries that get imported by other things, you would just create an
instance of your named logger and use it.
For the entry-point scripts (the ones that execute) you can create a logger
library that sets up all your common stuff, to that you can easily import
it and run it to set up your log
Can see a reason for that to fail. Does it just say syntax error?
On Jun 18, 2014 3:38 PM, "Brian Eyre" wrote:
> Hi,
>
> I was getting intermittent syntax errors from code entered into the *popup
> menu* of a shelf button, and have narrowed it down to an issue with using
> '%' in string format
, couldn't resist playing instead of cooking dinner for
>> myself. Trying this:
>>
>> print r"what does %s do?"
>>
>> and I get:
>>
>> what does {'1': u'False'} do?
>>
>>
>> Bah.
>>
>>
>>
Monkey-patching is a bit of an evil art. Especially when you are modifying
a shared python environment such as Maya. It would have to be done in a way
that doesn't result in crazy breakage for other tools that live in the same
interpreter and expect one type of return value, but get another (Action
an
>> option in the Gorilla library to throw an exception whenever a method
>> already exists instead of saving it under another name.
>>
>>
>>
>> On 23 June 2014 19:52, Justin Israel wrote:
>>
>>> Monkey-patching is a bit of an evil art. Especially whe
QListWidget has a lot of the drag and drop functionality already defined,
so it is just a few features that have to be enabled:
class DragDrop(QtGui.QWidget):
def __init__(self):
super(DragDrop, self).__init__()
self.list1 = QtGui.QListWidget()
self.list1.setDragEnabl
hat signal for another function call
>
> thanks..
>
> On Thursday, 26 June 2014 17:17:15 UTC+5:30, Justin Israel wrote:
>>
>> QListWidget has a lot of the drag and drop functionality already defined,
>> so it is just a few features that have to be enabled:
>>
>
Hey Jeremy,
I tend to agree with that older post, from experience. When I had first
come across PyMel, I was excited to see a more "pythonic" api than the
native MEL/python commands. But then ended up seeing similar issues to what
were raised in that post. Let me say up front that I mean no slight
Hi
Do you need a full image editing application for the purpose of adding
extension scripts, or do you need an image processing library that can do
the transformations?
They have gimp for windows. And you could also write your own PyQt app that
does image resizing and color transformations.
Whic
On Fri, Jul 4, 2014 at 11:35 PM, Marcus Ottosson
wrote:
> It’s been a while since I dipped my toes in PyMEL and it was early on in
> my programming experiences so it’s likely that if I ventured back into it
> at this point in time I might end up looking at things very differently,
> but I’ll try
If you do anything with Fabric Engine, maybe you could write up some info
on the experience. Never used it but was interested. It's commercial
though, right?
I sat in a demo once where they were trying to pitch a sale of an aspect of
the framework. Looked interesting.
On 5/07/2014 1:35 PM, "Jere
Strip the "_charName" part from the end of the given string:
substitute "_charName$" "blabla_blabla_charName" "";
// Result: blabla_blabla //
On Sat, Jul 5, 2014 at 6:21 PM, lala wrote:
> i have a string like *"blabla_blabla_charName"*
>
> i want to strip / remove *"_charName"* from end...
More specifically, with a variable substitution:
string $charName = "charName"
string $source = "blabla_blabla_charName";
string $stripped = `substitute ("_" + $charName + "$") $source ""`;//
Result: blabla_blabla //
On Sat, Jul 5, 2
with underscore via regex. but thanks anyways
>
> On Saturday, 5 July 2014 11:36:53 UTC+5, Justin Israel wrote:
>>
>> Strip the "_charName" part from the end of the given string:
>>
>> substitute "_charName$" "blabla_blabla_charName" "
ine 3 again (second part) can solve
> it..but still, thanks anyways, really appriciate your prompt responses.
> always. thats only reason, posting here is more fun than anywhere else.
>
> On Saturday, 5 July 2014 11:55:36 UTC+5, Justin Israel wrote:
>
>> That's what you wan
Anytime. And if we meet, a decent Rum will suit just fine ☺
On 5/07/2014 10:05 PM, "haseeb ahmed" wrote:
> wow, its amazing. thank you sir, its perfect. i owe you a drink .
> regards,lala
>
>
> On Sat, Jul 5, 2014 at 1:00 PM, Justin Israel
> wrote:
>
>>
Hey Marcus,
You just want it to create the workspace.mel file that it creates for you
when you set a new project from the UI?
If so, this seems to work for me:
import osimport maya.cmds as cmds
root = "~/tmp"
name = "maya_test"
fullpath = os.path.expanduser(os.path.join(root, name))
if not os.
On Mon, Jul 7, 2014 at 9:41 PM, Marcus Ottosson
wrote:
>
>
> Ps. Justin, I've been getting a "Delivery to the following recipient
> failed permanently" a few times the past week or two. Had to re-post this
> message as it didn't seem to pop up on the list.
>
Can you check the header/cc list of th
Hey Paul,
Thanks for joining the conversation.
I had actually sat in on a demo you guys did at my studio. It looks really
cool. Although the room did contain a number of low-level C++ programmers
and I remember there being a negative reaction to the requirement of KL.
Taking a glance at the Fabri
n becomes less important when we're looking at graphs, even
> though you'll be able to jump out and author KL at any point. We'll be
> showing it at Siggraph so let me know if you're about - we'll be doing user
> groups all day on Tuesday of the show, should be some
Hi Arjun,
Could you maybe add some more focused and specific details to your
question? It is very broad and vague. Currently it sounds like you need
help accessing components that have been defined in your UI file? How far
have you gotten and where are you stuck?
Also I am not clear on what you m
esser files.
>>
>> Am not sure this the best way. but it would be nice if someone can
>> suggest me a better option if am going wrong.
>>
>> Now with this workflow am trying to do am stuck trying to access the
>> components from ui file
>>
>> -Arjun
&g
I concur with the suggestions to stick with the Maya python commands and
related docs and see how far they take you. In my training videos (which I
see you already found ☺) I say the same, where because it is very close to
the MEL equivalent it is easy to turn on the Echo All Commands in script
edi
Fwiw I didn't see anything politcal about the answer either. I saw it as a
description of how KL is meant to fill a specific need for a high level
language that can express more domain specific concepts. I get that it aims
to have the same accessibility as a Python or a JavaScript.
I also see it as
I don't think it should be much of a problem to create a QMainWindow that
is a child of the Maya main window. It will know it isn't a top-level
window.
But for the menu stuff, it seems like it doesn't work too well to try and
create the Application-level menus directly through Qt. You probably need
I've been using PySide mainly, but like others have mentioned, I write my
apps to run standalone as opposed to within Maya. I have also written some
of them to be agnostic of either PySide or PyQt4 in the sense that I will
import them once in a single module, and then all the other modules in my
ap
This would give you the string name of the enum value:
cmds.getAttr("defaultRenderGlobals.imageFormat", asString=True)
On Sat, Jul 12, 2014 at 6:58 AM, md wrote:
> Hey Guys,
>
> So I am pulling the information from RenderGlobals and I see that when I
> have a pass set up as an *.exr *Maya is
The application-level menus don't respond very well to being manipulated at
the Qt layer. If it were your own set of menus in another widget (not
application main window menus) you would have a lot more flexibility in
doing everything you want. I have menus where I do the same, responding to
right
Hi Diego, and welcome to the group.
Unfortunately Maya isn't being very nice in telling you a helpful traceback
message. But most likely your problem is that either the renderPath does
not yet exist, or is inaccessible. Try doing this first:
if not os.path.isfile(renderPath):
print "Does not
He uses the first instead of the returned list:
renderPath = cmds.renderSettings(fin=True, fp=True)[0]
The problem is that he isn't checking if it actually exists before trying
to open it.
On Tue, Jul 15, 2014 at 6:31 PM, Larry Wang wrote:
> cmds.renderSettings() returns a string list. But yo
What does line 28 do in your code?
Sounds like you are accessing an attribute that does not exist ☺
On 15/07/2014 11:48 PM, "md" wrote:
> I am getting this error after showing a PyQT Dialog ...
>
> // Error: 'ListLayersDialog' object has no attribute 'winEvent'
>
> # Traceback (most recent call l
There isn't any formal kind of global "flush" for Qt. If you are leaking
memory then you would need to fix that. Since Maya is a persistent
environment for all of the tools you run, tools have to take care to clean
themselves up.
With Qt, even more so. Because if you create widgets with parent to
:
> Thank you Justin, I´m trying to learn but is very hard, this code doesn't
> work yet, are there other some way to this? Have a nice day
>
>
> 2014-07-14 22:37 GMT-05:00 Justin Israel :
>
>> Hi Diego, and welcome to the group.
>>
>> Unfortunately
I think the primary suggestion about ensuring your code is all within
functions and not executing at the module level is the real focus. And then
your shelf button does the import and calls the entry point function.
But I did just notice something that may help correct your issue. Instead
of using
ch any outer indentation level #
>
> I've rendericed the image therefore the images exists, I see it in the
> images folder from my project of maya
> thanks for help
>
>
> 2014-07-15 15:02 GMT-05:00 Justin Israel :
>
>> Well there are no ways around the fact that tryi
What are you using now to get the selected items that isn't giving you the
full selection? Is it QTreeWidget.selectedItems()?
What is your QTreeWidget set to for its SelectionBehavior and
SelectionMode? Does it already allow multi-row selection but is not
returning multiple rows?
On Wed, Jul 16,
but then i was
> expecting it to return multiple objects, it returns one object which is
> ideally a list
>
>
> On Wed, Jul 16, 2014 at 10:53 AM, Justin Israel
> wrote:
>
>> What are you using now to get the selected items that isn't giving you
>> the full selecti
r i in object:
> print i.text(columnNumber)
>
> that gives me the values
>
>
> On Wed, Jul 16, 2014 at 11:42 AM, Justin Israel
> wrote:
>
>> I'm not sure I follow. It should always be a list, with one or more items
>> in it. So it technically always r
ck to
work.
On Wed, Jul 16, 2014 at 9:52 PM, Arjun Thekkummadathil <3dar...@gmail.com>
wrote:
> I actually use PySide
>
>
> On Wed, Jul 16, 2014 at 3:09 PM, Justin Israel
> wrote:
>
>> Are you using an old version of PyQt maybe? Because I am testing PyQt
>> 4.8.
You could either structure it as a class, as suggested, or you could use my
most favorite member of the stdlib, and wrap your callback:
import maya.cmds as mcfrom functools import partial
def launch_UI():
if mc.window("myWindow", ex=True):
mc.deleteUI("myWindow", window=True)
mc.w
If you are using a standard install of PyQt within Maya, it has the
potential to produce undefined results. It expects to be compiled against
the same Qt version as Maya, which is also a modified version by Autodesk.
On 17/07/2014 4:16 PM, "Siew Yi Liang" wrote:
> I actually just copy the direct
0/103947555827441509448?prsrc=4> no there is
>>> no particular reason only that I'm not a programmer and started with qt, qt
>>> designer under linux and familiar with it. that's all.
>>>
>>> Thanks,
>>> Gyuri
>>>
>>>
>>
Definitely not the first one. Avoid relying on globals when possible.
The second and third are equally fine right now. But if you start needing
more state such as storing more widgets or values, then the class will end
up becoming the better choice.
On 18/07/2014 2:54 AM, "Gabriele Bartoli" wrote
Does the slot not get called when you click list items? Are you able to
reproduce a concise working example (on pastebin or gist or something) that
we can test?
On 18/07/2014 7:43 AM, "md" wrote:
> Hey Again
>
> Thanks for all the help .. I have to say this Maya community really is
> awesome.
>
Qt
>> classes or any classes for that matter from Maya's Python, or Python
>> overall. The recommended approach for Python in general is to either
>> restart the interpreter, which in the case of Maya is to restart Maya, or
>> to handle each deletion yourself, which again
Glad you caught that one. We wouldn't have noticed it without the full
example :-)
On Fri, Jul 18, 2014 at 8:45 AM, md wrote:
> ARGH ! The forms create_conenctions() funtion does not do much if you
> never call it =(.
>
> Sorry for the wasted bandwidth.
>
>
> On Thursday, July 17, 2014 3:43:41
Hey Brian,
Was the xform command not working for you? Sounds like it would give you
the info that you need. Have you tried it, or are you just asking ahead of
time about possible approaches?
On Fri, Jul 18, 2014 at 7:43 AM, Brian Powyszynski <
brian.powyszyn...@gmail.com> wrote:
> Hey everyone,
th this.
>
> I think pointPosition
> <http://download.autodesk.com/us/maya/2010help/CommandsPython/pointPosition.html>
> looks
> promising, but I have not tried it yet and I am not sure if it will work
> with a locator.
>
> Any thoughts on which approach I should pursue?
&g
have
> something else up my sleeve. Would you like to give it a try when I am done
> with it?
>
> Cheers
>
> On Thursday, 17 July 2014 21:57:17 UTC+2, Justin Israel wrote:
>>
>> Definitely not the first one. Avoid relying on globals when possible.
>> The second an
y_function()
>
> I think I am missing something syntax-wise.
>
>
> On Thursday, 17 July 2014 21:57:17 UTC+2, Justin Israel wrote:
>
>> Definitely not the first one. Avoid relying on globals when possible.
>> The second and third are equally fine right now.
d.
>>
>> So using partial like this
>>
>> command = partial(f, val)
>>
>> I'm wrapping two values together, telling command to target the wrapper
>> and, when the button is clicked, the wrapper is unwrapped and the function
>> executed with 'va
I do my best to avoid teaching hacks or
workarounds, when better solutions are available :-)
>
>
> On 18 July 2014 12:46, Justin Israel wrote:
>
>> Marcus,
>>
>> partial() is a formal version of a closure (lambda) so if you recommend a
>> lambda, then a partia
I can offer a couple points of feedback so far, but I didn't get too deep
into the too since it has some compatibility issues with python2.6 (Maya
2013).
If you use the str.format() approach for formatting text, python2.6 doesn't
support the anonymous fields. That was introduced in python2.7
So in
On Mon, Jul 21, 2014 at 11:08 PM, Gabriele Bartoli wrote:
> Hi, sorry for the late reply. Busy weekend!
>
>
> On Friday, 18 July 2014 23:36:52 UTC+2, Justin Israel wrote:
>>
>> I can offer a couple points of feedback so far, but I didn't get too deep
>
;
> Many thanks and thanks for the work put into the educational videos, they
> have been excellent value for money. I am still working my way through the
> rigging ones as well. Plus, using the Beastie Boys as a loading tune was
> great.
>
> Cheers
>
>
> On Wed, Mar 12, 2014
On 22/07/2014 3:13 AM, "Gabriele Bartoli" wrote:
>>
>> The use of double underscore is for methods where the implementation is
private and outside people shouldn't be calling it. For things like
callbacks that may take private arguments or have functionality where you
want control over them being
Hi Beverly,
Would you be able to provide an example of how you are connecting up your
buttons? Or even a small working example that reproduces the problem?
The treeView documention contains an example at the bottom of creating a
treeView and connecting up a callback:
http://download.autodesk.com/
Hi,
I think you confused setting the value of the window title with giving it
an object name. You can see this if you print the value of main_win.
What you want to do is give it an explicit object name, and then check for
that object name when wanting to delete or reshow it:
WINDOW_NAME = "TEST"
If you use python eggs (as opposed to normal package sub directories) and
have a bunch of them in a location, then the site/pth process will end up
expanding your PYTHONPATH to have all those eggs in there.
You can control your custom Maya environment either with a wrapper to
launch Maya, or from
Either userSetup,py, or a wrapper script that launches Maya?
On Wed, Jul 23, 2014 at 12:39 PM, md wrote:
> So I got the modules loading by using the following in my maya.env
>
>
> PYTHONPATH=%PYTHONPATH%;%MAYA_LOCATION%;C:\Python27;C:\Python27\Lib\site-packages
> ;C:\Python27\Lib\site-packages
= 600, height = 600)
>
> What I do not understand is why would you place WINDOW_NAME in the
> cmds.window command, like what is its role in it?
>
>
> On Tuesday, July 22, 2014 7:35:14 PM UTC+8, Justin Israel wrote:
>
>> Hi,
>>
>> I think you confused setting
Unfortunately working with the native Maya UI is inherently a clunky
process. I am not much of a fan of the process involved in defining the
layouts. The only real resource I have really used in my experience is just
looking at the "Layouts" section of the cmds docs, and reading and testing
the ful
the usage of
> different usages?
>
>
I didn't really understand this part. Are you referring to better
understanding the parent child relationship when you are creating things
linearly like: a layout, then an optionMenu, and then multiple menuItems?
>
> On Wednesday, July 23, 2014 10:50:
I have to say that Windows is the most complicated out of the platforms,
when dealing with compiled python extension compatibility in Maya.
Osx/Linux are far easier to end up with standard compiled extensions that
work within Maya.
On 24/07/2014 3:47 AM, "Marcus Ottosson" wrote:
> Or just used th
My friend wrote this, and we use it in production at work
https://github.com/sqlboy/fileseq
pip install fileseq
On 25/07/2014 1:59 AM, "Eric Thivierge" wrote:
> Maybe this?
> http://opensourcevfx.org/2012/11/openbatchio/
>
> Also check that site for other useful stuff...
>
> Eric T.
>
> On Thur
Hey,
I've actually never had to do any distribution of Maya tools/plugins, since
my only experience has been developing for internal pipelines where things
are already set up for the environment to pull in released tools. But I
took a quick glance at the Maya module system in the docs and it seems
Ignore my copy-paste errors in the middle where I repeat myself :-)
On Sun, Jul 27, 2014 at 12:37 PM, Justin Israel
wrote:
> Hey,
>
> I've actually never had to do any distribution of Maya tools/plugins,
> since my only experience has been developing for internal pipelines w
As one example, I did something similar when I was experimenting with
getting an XBOX kinect to drive some of our characters at SouthPark. It
wasn't a graphical interface but I had the same design intentions to make
the library agnostic of the host app, so that at some point if I wanted I
could sw
The subprocess module superseded all of the other various ways of launching
processes, such as os.system, os.popen, commands, etc.
What you were calling is the convenience call() function that waits for the
return code of the process. So of you don't want to wait for the return
code immediately,
Busted on cross-posting? :-)
@Tony, I also like QSettings since it handles a few things for you like
platform-specific storage locations that can resolve from User -> System.
You can actually pass a Format flag to the constructor to tell it to use
INI (I do that do keep it consistent on OSX/Linux)
Since my training vids have been out for a long while now, I asked for some
discount coupon codes to be created with really long expiration times, so
that I could give them to the group. In case anyone wants to pass these
along...
80% off all of my training vids at cmivfx.com
JUSTIN_80_PV1
https:
should i do to get it?
> Cheers,
> Eduardo
>
>
> On Tue, Jul 29, 2014 at 7:45 PM, Justin Israel
> wrote:
>
>> Since my training vids have been out for a long while now, I asked for
>> some discount coupon codes to be created with really long expiration times,
>
this for me?
>
>
> On 28 July 2014 23:07, Tony Barbieri wrote:
>
>> Ah, thanks for the additional info, Justin!
>>
>>
>> On Mon, Jul 28, 2014 at 6:05 PM, Justin Israel
>> wrote:
>>
>>> Busted on cross-posting? :-)
>>>
>>&g
gt;> I think I'll try PyQt course.
>>
>>
>> On Wednesday, July 30, 2014 4:53:36 AM UTC+2, Justin Israel wrote:
>>>
>>> Hey Eduardo,
>>> You just use those coupon codes (each one before the url I had listed)
on the cmivfx site, when you are purchasi
, "Michael Donovan" wrote:
> how about some answers ?? =) !
>
>
> On Wed, Jul 30, 2014 at 2:51 AM, Marcus Ottosson
> wrote:
>
>> Ah! Got it, no it was just quite the coincidence. :)
>>
>>
>> On 30 July 2014 07:37, Justin Israel wrote:
>>
>&g
QProgressBar has a virtual text() method that you could implement and
return custom text:
http://qt-project.org/doc/qt-4.8/qprogressbar.html#text-prop
I am usually using either a QProgressDialog that supports extra text, or
displaying my text in a surrounding QLabel to a QProgressBar, but this is
As Paul mentioned, your regex can either cover a limited amount of cases,
or as general of cases as possible. Yours was pretty limited to specific
delimiters and 3-character extensions. Bot yours and Paul's corrections
also don't account for negative frame numbers, if you have sequences that
maybe
re
for dealing with both concrete file paths and ranges.
On Thu, Jul 31, 2014 at 8:19 AM, Justin Israel
wrote:
> As Paul mentioned, your regex can either cover a limited amount of cases,
> or as general of cases as possible. Yours was pretty limited to specific
> delimiters and 3-chara
for the entire purchase, and not limited to individual
products. So they had to develop support for that one.
>
> On Tuesday, July 29, 2014 6:46:10 PM UTC-4, Justin Israel wrote:
>>
>> Since my training vids have been out for a long while now, I asked for
>> some discount
t;
>
> On Thu, Jul 31, 2014 at 7:15 AM, Justin Israel
> wrote:
>
>>
>>
>>
>> On Thu, Jul 31, 2014 at 9:11 AM, md wrote:
>>
>>> ugh
>>>
>>>
>> Sorry! I've been trying to get the owner of cmivfx to get me these codes
>
14 at 4:22 PM, Joe Weidenbach wrote:
> Well, I bought them long enough ago that I wouldn't have been able to
> take advantage of this anyway, but they're high enough quality that it
> doesn't bother me one bit :) Still the best PyQt training out there.
>
>
>
Let me know if it ends up being good.
I can't stand that Packt Publishing company and refuse to support their
products. They have a practice of going around hunting for anybody with at
least one keyword matching a subject they want to cover, regardless of the
target persons actual experience. They
ng
> the wrong publisher so that kind of matches what Justin mentioned. Will
> have to grab a copy to keep around the office.
>
>
> On Fri, Aug 1, 2014 at 4:23 PM, Justin Israel
> wrote:
>
>> Let me know if it ends up being good.
>>
>> I can't stand that
Untested, but have you checked if the refresh command helps to flush the
event queue?
http://download.autodesk.com/global/docs/maya2012/en_us/CommandsPython/refresh.html
Otherwise I am pretty sure using the qt processEvents() call would work:
from PySide import QtGui
QtGui.qApp.processEvents()
On
Is that Windows-specific behaviour, related to how it can actively prevent
any other process from accessing the file, and can also delete on close? I
don't think *nix has that same behaviour. Also does that windows behaviour
work the same on NFS?
You can do file locking on *nix, but I don't think i
On Tue, Aug 5, 2014 at 4:32 AM, Marcus Ottosson
wrote:
> So I’m not sure where I would go next with a video.
>
> How about a “Stepping outside of Maya” video, by Weta Technical Director
> Justin Israel! Win!
>
LOL. What does that topic cover? All things not Maya?
I think someone
Hmmm
>
> cheers,
> chrisg
>
> On 5 August 2014 06:54, Justin Israel wrote:
> > Is that Windows-specific behaviour, related to how it can actively
> prevent
> > any other process from accessing the file, and can also delete on close?
> I
> > don't think
Step 1) Learn GPU programming
Step 2) ...
Step 3) Profit
On 6/08/2014 5:13 AM, "LIJU kunnummal" wrote:
> How about GPU Programming with Maya (or any DCC)?
>
> On Wednesday, 30 July 2014 04:16:10 UTC+5:30, Justin Israel wrote:
>>
>> Since my training vids have b
Have you tried this approach through the Maya API to see if you get any
better performance?
On 9/08/2014 9:32 AM, "Kenneth Polonski" wrote:
> So I'm currently trying to find a nice fast way to export some user added
> attributes and values to a json file, based on their prefix of 'mtoa_' or
> 'm
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/CommandsPython/textureWindow.html
This would mean that if you were to embed it into your own UI, it
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
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
Specifically regarding that error, you have a typo in your call to cmds.ls()
within your getCamera() method. You typed "camera = 1", but it should be
"cameras = 1"
Also, you may want to consider either using Qt completely, or the native
Maya UI, but not mixing them unless you have some specific re
You can try looking them up through Qt (MQtUtil) and using their signals or
events.
On 20/08/2014 7:11 AM, "illunara" wrote:
> Thank for reply
> Yes, ofc, its possible. But I just want to try different way :D
>
> --
> You received this message because you are subscribed to the Google Groups
> "P
_found.setText = setText
>
>
I think that would only work for virtual methods of the widget, and also
probably not have any effect on the underlying Qt in Maya since it wouldn't
know about the virtual method of your local python object.
It does work when you own the widgets in your app.
But this approach only deletes the direct module you refer to. Any other
existing modules that might have imported the library will still have a
live reference to the old one. To really do a "deep reload" you have to
recurse down all of the dependencies that had been imported, and reload
anything e
the cache through a hook at my previous job and it was a nightmare!).
>
> Cheers!
>
> On Thu, Aug 21, 2014 at 5:02 AM, Justin Israel
> wrote:
>
>> But this approach only deletes the direct module you refer to. Any other
>> existing modules that might have imported the
Sorry I wasn't clear before. I am only talking about development. I
wouldn't use any deep reloading tricks in a production situation.
On 22/08/2014 7:25 AM, "Justin Israel" wrote:
> Actually in development I have had the same need. If I am working on a
> tool and it i
Ah missed that part. All good. Lots of options for dev.
On 22/08/2014 7:49 AM, "Cesar Saez" wrote:
> I don't know if you actually saw the code I linked before, but it
> 'reloads' the entire package (all submodules included).
>
> import sys
> def hard_reload(package_name):
> for k in sys.mod
501 - 600 of 2797 matches
Mail list logo