[Maya-Python] Re: QListWidget crashing Maya.

2015-02-14 Thread ben . hearn
Den fredag 13 februari 2015 kl. 15:37:08 UTC+1 skrev Panupat Chongstitwattana: > Hi everyone. > > I got a call from my previous studio that a PyQt script I wrote, which > worked with 2012-2014, is crashing their Maya 2015. So I came in to > take a look and I can't figure out the reason. I have qui

Re: [Maya-Python] Re: QListWidget crashing Maya.

2015-02-15 Thread Ben Hearn
Ahh, that I was unaware of thanks for the knowledge update! :) On 14 February 2015 at 20:42, Justin Israel wrote: > While the differences between PyQt and PySide aren't too big, it isn't > always as easy as changing the imports. PySide uses the equivalent of PyQt > w/ sip API v2. That means if

[Maya-Python] Structure of reading a binary file

2015-03-01 Thread Ben Hearn
Hello all, I am currently in the process of writing a tool for work that requires the need to read our in house.model format which is a binary file. Here's the thing, the guy who wrote the tools that I inherited never finished them and never commented them so I have been hacking at the old cod

[Maya-Python] Reading a binary file using Python

2015-03-01 Thread Ben Hearn
Hello all, I am currently in the process of writing a tool for work that requires the need to read our in house.model format which is a binary file. Here's the thing, the guy who wrote the tools that I inherited never finished them and never commented them so I have been hacking at the old cod

Re: [Maya-Python] Re: Reading a binary file using Python

2015-03-03 Thread Ben Hearn
hat the header does? > The header for our files is a 4 byte string, what does this indicate or is > it for the engine/computer so it is able to decode it properly? > > Cheers, > > Ben > > > On Sunday, 1 March 2015 16:58:50 UTC+1, Ben Hearn wrote: > > Hello all, > &g

Re: [Maya-Python] Class inheritance for PyQt

2015-03-05 Thread Ben Hearn
hon_inside_maya/065722da-82df-4108-92d5-6c76844d0696%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

Re: [Maya-Python] Class inheritance for PyQt

2015-03-05 Thread Ben Hearn
what is really going on here but it is accessing an item in > your list that Qt has cleaned up for whatever reason. Could even be a child > of an item that was deleted. > > On Fri, 6 Mar 2015 9:46 AM Ben Hearn > wrote: > >> Ahh. The reason I don't get an error is because

Re: [Maya-Python] Class inheritance for PyQt

2015-03-06 Thread Ben Hearn
yAdded.append(toBeAdded.text(0)) #recurseInnerRoots.append(childItem) recurseInnerRoots.append(toBeAdded) self.deleteDictElements(dict, toBeAdded.text(0)) Thanks for the help, an epic Google group On 5 March 2015 at 23:17

Re: [Maya-Python] Re: Pycharm DLL issues with run vs debug

2015-03-08 Thread Ben Hearn
from this group and all its topics, send an email to > python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/8cb1a2f7-9a29-4aa6-88dd-826e7e884ad1%40googlegroups.com > <https://groups.google.com/

Re: [Maya-Python] Re: Pycharm DLL issues with run vs debug

2015-03-09 Thread Ben Hearn
> env. > > On Mon, 9 Mar 2015 9:24 AM Ben Hearn wrote: > >> Hello Liju, >> >> I have checked the project interpreter and PyQt4 is not on the packages >> listing, I have tried to install but I keep getting the error: >> >> Collecting PyQt4 >>

Re: [Maya-Python] Re: Pycharm DLL issues with run vs debug

2015-03-09 Thread Ben Hearn
AFRtmOD-D43ZcC_qqCkepXs7MWw9RC8h-r2JkBbn0th255GyUQ%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOD-D43ZcC_qqCkepXs7MWw9RC8h-r2JkBbn0th255GyUQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://g

Re: [Maya-Python] Re: Pycharm DLL issues with run vs debug

2015-03-09 Thread Ben Hearn
%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOA_he0P-qQ40tqNkCSwCoy%3D_AJEdxs-hF0y6s66GAgCqQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Tel - +46 76245 9

Re: [Maya-Python] Re: Pycharm DLL issues with run vs debug

2015-03-09 Thread Ben Hearn
VeuFX4mRTPj%3DpdiravJXzR99CV1dLMQ%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODT-kQf_q6jz5PVeuFX4mRTPj%3DpdiravJXzR99CV1dLMQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. >

Re: [Maya-Python] Re: Pycharm DLL issues with run vs debug

2015-03-10 Thread Ben Hearn
ever has an issue like this try a clean reinstall Cheers, Ben On 9 March 2015 at 18:16, Ben Hearn wrote: > No problem at all Marcus, thanks for the help thus far. If I manage to > figure out what is going on I shall post up my answers :) > > On 9 March 2015 at 18:15, Marcus Ott

Re: [Maya-Python] Unresolved reference etree in Pycharm

2015-03-13 Thread Ben Hearn
; python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0FdaGfcM6UJmD7yhoSOasdYZuOg3_7tyeZngxzDZF2cg%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0FdaGfcM6UJmD7yhoSOasd

Re: [Maya-Python] Re: Accessing a config file variable using another variable

2015-03-25 Thread Ben Hearn
gle.com/d/optout. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Python Programming for Autodesk Maya" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/python_inside_maya/sWXrW8kfsUE/unsubscribe

Re: [Maya-Python] Re: Recursive function running once more than it should???

2015-04-02 Thread Ben Hearn
; group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/python_inside_maya/VDbwp3Nd9ec/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on

Re: [Maya-Python] Q Table Widget issues emitting signal when data has been changed

2015-04-14 Thread Ben Hearn
nsubscribe > . > To unsubscribe from this group and all its topics, send an email to > python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODTWiZV%3D8EEcpPmaRwQcaSnqsFrRGYrgg_yen%2Bn

Re: [Maya-Python] restoring expanded state of qtreewidget hierarchy

2015-04-15 Thread Ben Hearn
/CAFRtmOD_M7Myk_4LXkgGn-QWtum53FjsAYQQVMg_ii5y1_eJvQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Tel - +46 76245 92 90 (Sweden) LinkedIn: http://www.linkedin.com/pub/ben-hearn/50/a64/33b -- You re

Re: [Maya-Python] restoring expanded state of qtreewidget hierarchy

2015-04-15 Thread Ben Hearn
he >> effort is worth it. >> >> Item views are undeniably more complex than their widget counterparts but >> their complexity is really only a reflection of how complex the data you're >> working with really is, and hierarchical data especially is amongst the &

Re: [Maya-Python] QT Drag and Drop help

2015-04-22 Thread Ben Hearn
topics, send an email to > python_inside_maya+unsubscr...@googlegroups.com > > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAM33%3Da5rW8Dus%2BWgOSb888GHdtrHc7B9Y11WXAkkWbnENNS8RQ%40mail.gmail.com > <https://groups.google.com/d/m

Re: [Maya-Python] QT Drag and Drop help

2015-04-22 Thread Ben Hearn
source.setItem(i, 0, QtGui.QTableWidgetItem("Item >> {0}".format(i+1))) >> source.setItem(i, 1, QtGui.QTableWidgetItem("Item {0} Col >> 2".format(i+1))) >> layout.addWidget(source) >> >> dest = Destination

Re: [Maya-Python] QT Drag and Drop help

2015-04-23 Thread Ben Hearn
stDropMimeData >>>>>> dest.setAcceptDrops(True) >>>>>> dest.setDropIndicatorShown(True) >>>>>> dest.setDefaultDropAction(QtCore.Qt.CopyAction) >>>>>> dest.setDragDropMode(QtGui.QAbstractItemView.Drop

Re: [Maya-Python] Updating Maya or checking for updates through script

2015-06-01 Thread Ben Hearn
ps.google.com/d/msgid/python_inside_maya/CAAOciAghgazRNuepS1imTu_i06x-EkkYsbRi4Dzn4%2BqK_m62QA%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAAOciAghgazRNuepS1imTu_i06x-EkkYsbRi4Dzn4%2BqK_m62QA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > >

Re: [Maya-Python] Re: External command line py script still using maya's python??

2015-07-08 Thread Ben Hearn
ide_maya/d692c3ab-7373-42f0-ae18-e02d140d3f47%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 a topic in the > Google Gro

Re: [Maya-Python] Re: loading a DDS file into a QImage for display in PyQt

2015-08-18 Thread Ben Hearn
rom this topic, visit > https://groups.google.com/d/topic/python_inside_maya/s1BKlrcJ9vI/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit

[Maya-Python] Allow the user to drag the height of a qtablewidget

2015-10-23 Thread Ben Hearn
Hello all, I have a UI that has a few QTableWidgets. The main one is at the top and the two children are in a horizontal layout below it. I would like to be able to increase/decrease the height of the main QTableWidget so the user can change the size as they see fit. I have the main widgets f

Re: [Maya-Python] Allow the user to drag the height of a qtablewidget

2015-10-23 Thread Ben Hearn
Oh man thanks for the heads up. Got it working as I wanted straight off the bat. Except the space between the widgets. Any quick solutions? On Friday, 23 October 2015 17:01:15 UTC+2, Marcus Ottosson wrote: > > Have a look at QSplitter. > > On 23 October 2015 at 15:28, Ben He

Re: [Maya-Python] Allow the user to drag the height of a qtablewidget

2015-10-23 Thread Ben Hearn
Got it. I was creating a new widget and it was casuing issues. I decided to create 3 splitters which solved my issue. Thanks for the tips! On Friday, 23 October 2015 17:18:23 UTC+2, Ben Hearn wrote: > > Oh man thanks for the heads up. Got it working as I wanted straight off > the ba

Re: [Maya-Python] Setting up our Maya session in a bat file

2015-10-31 Thread Ben Hearn
s.google.com/d/topic/python_inside_maya/UV_fdWrS3YM/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > python_inside_maya+unsubscr...@googlegroups.com > > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/pytho

Re: [Maya-Python] Setting up our Maya session in a bat file

2015-10-31 Thread Ben Hearn
n and unaltered. We can still use pyside if we want to On Saturday, 31 October 2015, Justin Israel wrote: > l > > On Sun, 1 Nov 2015 9:44 AM Ben Hearn > wrote: > > Hey Justin, > > Thanks for the feedback I should have been more concise with the > explanation of SHOW and

Re: [Maya-Python] Setting up our Maya session in a bat file

2015-10-31 Thread Ben Hearn
wrote: > > On Sun, 1 Nov 2015 10:05 AM Ben Hearn > wrote: > > Yes essentially we are dynamically switching from PySide to PyQt4. Not > sure about building and installing for Maya, we are just telling maya to > use the system version of pyqt. We do not need to install and build

[Maya-Python] Setting up our Maya session in a bat file

2015-10-31 Thread Ben Hearn
Yes indeed. An all inclusive maya bootstrap. Great way to sum it up :) how is it the logic working with osx? On Saturday, 31 October 2015, Justin Israel > wrote: > > On Sun, 1 Nov 2015 10:15 AM Ben Hearn wrote: > > Yes, we can set our pyqt version to whichever works with maya it

Re: [Maya-Python] Setting up our Maya session in a bat file

2015-10-31 Thread Ben Hearn
tin Israel wrote: > > > On Sun, Nov 1, 2015 at 10:27 AM Ben Hearn > wrote: > >> Yes indeed. An all inclusive maya bootstrap. Great way to sum it up :) >> how is it the logic working with osx? >> > > Since the intention was to have a completely self-contained

Re: [Maya-Python] Setting up our Maya session in a bat file

2015-10-31 Thread Ben Hearn
No problem glad I could share. I'll amend the doc and explain the meaning of SHOW and CGROOT more clearly before I put it up on my portfolio and post it up again with the amendments On Saturday, 31 October 2015, Justin Israel wrote: > > On Sun, 1 Nov 2015 10:54 AM Ben Hearn >

Re: [Maya-Python] Setting up our Maya session in a bat file

2015-11-01 Thread Ben Hearn
;Running {exe} with:\n\t{env}".format(**locals())) > subprocess.call(exe, env=env) > > Running that produces the same results and has the same advantages as you > proposed about .bat, but is both cross-platform and more powerful. This > isn’t the end though, the next phase mi

Re: [Maya-Python] Setting up our Maya session in a bat file

2015-11-02 Thread Ben Hearn
share. :) > > For completeness, here’s the design document for be along with an earlier > prototype. > >- http://rfc.abstractfactory.io/spec/57 >- https://gist.github.com/mottosso/ef9d99a9f7aed88aac49 > > ​ > > On 1 November 2015 at 14:56, Ben Hearn wrote: >

Re: [Maya-Python] Setting up our Maya session in a bat file

2015-11-04 Thread Ben Hearn
t exec the Maya process > and let it replace the pid > > That’s a neat trick. > > Is its focus primarily unix systems? > > Thanks, happy to hear you like it. It’s mostly seen use on Windows, as far > as I know, and it’s been developed there also. But it’s meant to be used on

Re: [Maya-Python] For those times when you just can't get enough of file batching

2015-11-21 Thread Ben Hearn
, visit > https://groups.google.com/d/topic/python_inside_maya/kAYHaKvnJEY/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBOim9CONah

Re: [Maya-Python] For those times when you just can't get enough of file batching

2015-11-21 Thread Ben Hearn
e on > OSX (and would fail on linux too). @line 34 > <https://gist.github.com/ben-hearn-sb/dfd79ba2a7a77907cc77#file-file_runner-py-L34> > you make an assumption that users will have "APPDATA" set in their > environment, in order to join a directory path. I don't have th

Re: [Maya-Python] For those times when you just can't get enough of file batching

2015-11-22 Thread Ben Hearn
? -- Ben On 21 November 2015 at 21:02, Justin Israel wrote: > > On Sun, 22 Nov 2015 8:51 AM Ben Hearn wrote: > > Hey Justin, > > Thanks for the feedback. I was hoping for some epic feedback so it's all > good :) The more the better! > > The checking of the '

Re: [Maya-Python] For those times when you just can't get enough of file batching

2015-11-23 Thread Ben Hearn
Hey guys, Thanks for the feedback. I finished up yesterday afternoon with a revised version: https://gist.github.com/ben-hearn-sb/bd25face0beb0f00397f As per spaces vs tabs, is spaces a python preferred method of indenting? And snake_case. Is this a Python convention for variable names also

Re: [Maya-Python] For those times when you just can't get enough of file batching

2015-11-23 Thread Ben Hearn
ethod of indenting? > And snake_case. Is this a Python convention for variable names also? > > Maybe you weren’t familiar with PEP8, in which case my next critique would > be to get familiar with it. :) > ​ > > On 23 November 2015 at 09:26, Ben Hearn wrote: > >> Hey guys, >

Re: [Maya-Python] fatal error in Maya when iterate opening files

2015-11-24 Thread Ben Hearn
he web visit > https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAF0p3TnUp%3DCyR_vYeAa0pOd2tACRNnzBA7NTsNKq5%3D7A%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAF0p3TnUp%3DCyR_vYeAa0pOd2tACRNnzBA7NTsNKq5%3D7A%40mail.gmail.com?utm_medium=email&utm_

Re: [Maya-Python] fatal error in Maya when iterate opening files

2015-11-24 Thread Ben Hearn
quirements of the files you are opening, you could potentially run 10+ > instances simultaneously and go ~10x faster under ideal circumstances. > > Basically what I'm saying is, this approach is more difficult, but scales > better, is more safe and potentially (most likely) faster. >

Re: [Maya-Python] fatal error in Maya when iterate opening files

2015-11-25 Thread Ben Hearn
.com/d/msgid/python_inside_maya/CABPXW4jTXuTzP3VMbqLq3yXB9RgP%2B_9W2B10%2B3Xk9wt2Uw5%3DPA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Tel - +46 76245 92 90 (Sweden) LinkedIn: http://www.linked

Re: [Maya-Python] fatal error in Maya when iterate opening files

2015-11-25 Thread Ben Hearn
vice versa. Thoughts? [image: Inline images 1] On 25 November 2015 at 14:44, Ben Hearn wrote: > Hey guys, > > I have tried the solution to launch multiple Maya's. At first I split my > iteration dictionary into 2 and ran the 2 Mayas in parralell which produced > the same fat

Re: [Maya-Python] fatal error in Maya when iterate opening files

2015-11-25 Thread Ben Hearn
Hey Marcus, Sorry to keep code from you guys. I am not sure how much I generally should post online since it is for work and the code is split up into serveal chunks in batch and separate files, but I will make it a bit clearer for you guys :) Hope it is a bit clearer now Also, my reply about ske

Re: [Maya-Python] Re: Adding a QMenu to Maya??

2015-12-04 Thread Ben Hearn
or more options, visit https://groups.google.com/d/optout. >> > > > > -- > *Marcus Ottosson* > konstrukt...@gmail.com > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Python Programming for Autodesk Maya" gro

Re: [Maya-Python] fatal error in Maya when iterate opening files

2015-12-04 Thread Ben Hearn
where you need a maya gui session instead of a batch >>> session (you can even do openGL playblasts from a batch session). You said >>> that you are using "certain shaders and the Hypershade functions which >>> need the maya GUI window open". Can you tell us e

Re: [Maya-Python] Re: Adding a QMenu to Maya??

2015-12-04 Thread Ben Hearn
in which case Qt is a good choice. > ​ > > On 4 December 2015 at 09:25, Ben Hearn wrote: > >> My original plan was to use the standard cmds/pm menus for Maya but I was >> recommended to stick with Qt as it ties into the Python ecosystem much >> better. >> &

Re: [Maya-Python] Re: Adding a QMenu to Maya??

2015-12-07 Thread Ben Hearn
PySide/PyQt-based, it would be faster to just use >> the facilities offered by Adsk/the docs: >> http://help.autodesk.com/cloudhelp/2016/ENU/Maya-Tech-Docs/CommandsPython/menu.html >> >> // Fredrik >> >> >> On Fri, Dec 4, 2015 at 4:18 PM Ben Hearn >>

Re: [Maya-Python] Re: Adding a QMenu to Maya??

2015-12-07 Thread Ben Hearn
Hello all, I have another query about Maya menus. You can pin them to the shelf which is great but what gets pinned is the callback which appears to be a memory address. When Maya is closed and re-opened the callback no longer works. I am invoking my commands like so: def addMenuItem(parentMenu=

Re: [Maya-Python] removing a Qt instance after an error and window closed

2015-12-09 Thread Ben Hearn
t; . > To unsubscribe from this group and all its topics, send an email to > python_inside_maya+unsubscr...@googlegroups.com > > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWPbnGYCx4GjfZ9j1E-tdsTCsMHhCXXac2RNgDUGosshPg%

Re: [Maya-Python] removing a Qt instance after an error and window closed

2015-12-10 Thread Ben Hearn
oseEvent, >>>> if you set a widget attribute: >>>> >>>> self.setAttribute(QtCore.Qt.WA_DeleteOnClose) >>>> >>>> This could either be done in your constructor, or outside the class by >>>> a caller than wants the object it is

Re: [Maya-Python] removing a Qt instance after an error and window closed

2015-12-10 Thread Ben Hearn
, Ben Hearn wrote: > I need to close and re-open as the boot runs some checks and such on boot > but I suppose I could run the setup on show, I will run some tests thanks > for the tip. > The QObject.deleteLater() worked like an absolute charm thanks for the > heads up! > >

[Maya-Python] call function inside running websocket thread

2015-12-17 Thread Ben Hearn
function later from wherever in the code base *Code is below:* https://gist.github.com/ben-hearn-sb/6f3b283e62e8691119e3 Cheers, Ben -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this grou

[Maya-Python] some weird qpushbutton behaviour

2016-01-08 Thread Ben Hearn
Hello all, Probably a bit of a simpler question but I am having some strange behaviour with my UI. I have seen it before but I think I worked around it rather than actually figuring out why and how to stop it. So when I press the export button in my UI and the process is complete I alert the

Re: [Maya-Python] some weird qpushbutton behaviour

2016-01-08 Thread Ben Hearn
Hey Marcus, Run this in Maya and it should illustrate my issue :) https://gist.github.com/ben-hearn-sb/2b22edb528049d42fa65 On Friday, 8 January 2016 11:17:08 UTC+1, Marcus Ottosson wrote: > > A screenshot or something would really help communicate this problem more > clearly, idea

Re: [Maya-Python] some weird qpushbutton behaviour

2016-01-08 Thread Ben Hearn
: > > Runnable code snippet, even better. :) > > On 8 January 2016 at 10:39, Ben Hearn > wrote: > >> Hey Marcus, >> >> Run this in Maya and it should illustrate my issue :) >> >> https://gist.github.com/ben-hearn-sb/2b22edb528049d42fa65 >> >> On

Re: [Maya-Python] Plugin slower than normal cmds execution??

2016-04-03 Thread Ben Hearn
>> do stuff... >> >> So I decided to write myself a small plugin for a learning task that does >> this for you. >> >> Plugin: >> https://gist.github.com/ben-hearn-sb/cc5b0ebc5de41fc1f1c937e5b3f3359d >> >> The only problem is the speed of the plug

Re: [Maya-Python] Plugin slower than normal cmds execution??

2016-04-03 Thread Ben Hearn
on then port > myself if I don't need performance right away. > > Also if your interested in performance I'd suggest using the > profile/cProfile module over time it as it'll help you better understand > your code and where the time is spent. > > Ian > >

Re: [Maya-Python] Plugin slower than normal cmds execution??

2016-04-03 Thread Ben Hearn
getting another tool sooner. Others we spend months optimizing for the > best possible iteration. It's very much a case by case basis. > > Ian > > On Sun, Apr 3, 2016, 9:19 AM Ben Hearn wrote: > >> Ah I see, thanks for the tip. So is it advised to port from python to C++ &

Re: [Maya-Python] Plugin slower than normal cmds execution??

2016-04-04 Thread Ben Hearn
mmands. > > I think I even tried writing a simple ls command using Cython a long time > ago to see if it would work, and it did. That means you could write some > stuff in Cython > > On Mon, 4 Apr 2016 4:54 AM Ben Hearn wrote: > >> From a general plugin development perspect

Re: [Maya-Python] Plugin slower than normal cmds execution??

2016-04-06 Thread Ben Hearn
cmds.polyCube(name="myCube2") > cmds.group(name="myGroup")assert "myCube2" in cmds.ls("*2") > > ​ > > On 4 April 2016 at 13:45, Ben Hearn wrote: > >> Hey Marcus, >> >> I was wondering about the ls wildcard. I have been tr

Re: [Maya-Python] Plugin slower than normal cmds execution??

2016-04-06 Thread Ben Hearn
Fair enough :) On 6 April 2016 at 11:46, Marcus Ottosson wrote: > There are so many discussions about that already on this list, so I won't > comment on that. > > On 6 April 2016 at 10:39, Ben Hearn wrote: > >> Thanks for the tips man! >> I have one other quest

Re: [Maya-Python] A walk on the C++ Qt wildside

2017-04-10 Thread Ben Hearn
e.com/d/ > topic/python_inside_maya/IIdNOBuMonM/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_m

Re: [Maya-Python] Re: Maya 2017 executeDeferred running twice???

2017-06-13 Thread Ben Hearn
. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/python_inside_maya/PlY9aobjWgA/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visi

Re: [Maya-Python] Re: Pycharm DLL issues with run vs debug

2017-07-14 Thread Ben Hearn
I see. I will update to the latest version and will post my results. - Ben On 14 Jul 2017 18:07, "Fengyu Yan" wrote: > Hi Ben, > > Sorry it doesn't work for you. I only changed this option, then it's > working. BTW, I am using the latest Pycharm version 2017.1.5, not sure if > it's related to v

Re: [Maya-Python] Jenkins P4 changelist help

2017-08-14 Thread Ben Hearn
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 a topic in the > Google Groups "Python Programming for Autodesk Maya" group. > To unsubscribe fr

Re: [Maya-Python] Jenkins P4 changelist help

2017-08-15 Thread Ben Hearn
gleusercontent.com/-cZ8KU5vbxFU/WY2jMgtWJ6I/D6c/pzho_YBMA1Y2rbouqK9cBSHC2nD5Co4PQCLcBGAs/s1600/jenkins.png> >>>>>>>> >>>>>>>> -- >>>>>>>> You received this message because you are subscribed to the Google >>>

Re: [Maya-Python] pip install -e query

2017-09-21 Thread Ben Hearn
I will try that as soon as I get into the office. I am very new to the kind of work flow I have been introduced to. I will update you on your proposed solution. - Ben On 21 Sep 2017 21:06, "Justin Israel" wrote: > > > On Fri, Sep 22, 2017, 2:06 AM Benjam901 wrote: > >> Hello all, >> >> I am ha

Re: [Maya-Python] Re: Maya API, getting UV border vertices struggle

2017-11-10 Thread Ben Hearn
MfVert2 = getVertFromId(dagPath, vert2Index) >>> >>> fIdsvert1, uvIndicesVert1 = getVertUVInfo(MfVert1) >>> fIdsvert2, uvIndicesVert2 = getVertUVInfo(MfVert2) >>> >>> edgeIter.next() >>> >>> >>> Any suggest

Re: [Maya-Python] Re: Maya API, getting UV border vertices struggle

2017-11-13 Thread Ben Hearn
gt; Google Groups "Python Programming for Autodesk Maya" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/python_inside_maya/5rvHKbU9ipM/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > python_inside_may

Re: [Maya-Python] Re: Maya API, getting UV border vertices struggle

2017-11-23 Thread Ben Hearn
#uvSet='map1' >>>> >>>> set2 = 'uvSet' >>>> tempSets = ['map1', 'uvSet'] >>>> >>>> additional = 0 >>>> >>>> #for uvSet in tempSets: >>>> fnMesh.getVertices(ve