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
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
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
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
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
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
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
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
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/
> 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
>>
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
%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
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.
>
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
; 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
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
; 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
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
/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
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
&
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
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
stDropMimeData
>>>>>> dest.setAcceptDrops(True)
>>>>>> dest.setDropIndicatorShown(True)
>>>>>> dest.setDefaultDropAction(QtCore.Qt.CopyAction)
>>>>>> dest.setDragDropMode(QtGui.QAbstractItemView.Drop
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>
> .
>
>
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
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
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
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
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
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
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
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
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
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
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 >
;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
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:
>
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
, 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
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
?
-- 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 '
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
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,
>
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_
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.
>
.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
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
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
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
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
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.
>>
&
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
>>
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=
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%
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
, 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!
>
>
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
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
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
:
>
> 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
>> 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
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
>
>
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++
&
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
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
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
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
.
> 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
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
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
gleusercontent.com/-cZ8KU5vbxFU/WY2jMgtWJ6I/D6c/pzho_YBMA1Y2rbouqK9cBSHC2nD5Co4PQCLcBGAs/s1600/jenkins.png>
>>>>>>>>
>>>>>>>> --
>>>>>>>> You received this message because you are subscribed to the Google
>>>
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
MfVert2 = getVertFromId(dagPath, vert2Index)
>>>
>>> fIdsvert1, uvIndicesVert1 = getVertUVInfo(MfVert1)
>>> fIdsvert2, uvIndicesVert2 = getVertUVInfo(MfVert2)
>>>
>>> edgeIter.next()
>>>
>>>
>>> Any suggest
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
#uvSet='map1'
>>>>
>>>> set2 = 'uvSet'
>>>> tempSets = ['map1', 'uvSet']
>>>>
>>>> additional = 0
>>>>
>>>> #for uvSet in tempSets:
>>>> fnMesh.getVertices(ve
75 matches
Mail list logo