Re: [Maya-Python] generating proxy geometry around the selected object

2020-06-09 Thread Erik Qvarnström
Perry Leijten has a button for it on the skinning tool he has on his gumroad: https://gumroad.com/peerke#peVHN Pretty sure it uses the skin weights on the selected skinned mesh to generate a mesh with rigid skinning and cuts the mesh where the skinning splits. Den tis 9 juni 2020 kl 13:27 skrev

Re: [Maya-Python] Making a custom PyQt widget that imitates a frameLayout

2020-05-28 Thread Erik Spellerberg
I understand it in theory but I've just never seen an example of a custom widget being written. Is it just a new class that inherits QtWidget and I populate it with the objects that I want? Then insert instances of that class into my layout? On Wednesday, May 27, 2020 at 11:20:46 PM UTC+2,

[Maya-Python] Making a custom PyQt widget that imitates a frameLayout

2020-05-27 Thread Erik Spellerberg
I need a widget that looks and behaves like mayas native frameLayout with a title, arrow icon and you can click it to expand and collapse. Currently I have borrowed a hacky sollution that converts the layout into a maya frameLayout, but it doesn't refresh when I dock the window so I have to

Re: [Maya-Python] query current layer in batch render process

2019-07-10 Thread erik
Digging this up as I am having a similar problem. Using editRenderLayerGlobals -q -currentRenderLayer in a preRender script always returns the same layer no matter what -rl flag have been used to start the render. -- You received this message because you are subscribed to the Google Groups

Re: [Maya-Python] seqls/seqinfo (gofileseq) binary releases

2018-03-09 Thread erik
FYI seqls do not work on bgeo.sc files from Houdini. It lists them as individual files. -- 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

[Maya-Python] Re: Turn of "Use OCIO Input Color Space Rules"

2018-01-19 Thread erik
On Wednesday, January 10, 2018 at 7:51:00 PM UTC+1, Pritish Dogra wrote: > Anyone know how to turn this off via python/mel mc.colorManagementPrefs(e=True, ocioRulesEnabled=False) -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya"

[Maya-Python] Re: See which faces are affected by polyChipOff?

2017-12-24 Thread Erik . Spellerberg
Den fredag 22 december 2017 kl. 19:56:18 UTC+1 skrev vince touache: > I'm not sure I understand what you want to achieve, but can't you use the > python version instead of the mel one ? > a = cmds.polyChipOff(dup=False) > b = cmds.polySeparate(your_mesh) > > this way, you get a proper return

[Maya-Python] Re: See which faces are affected by polyChipOff?

2017-11-30 Thread Erik Spellerberg
Also I'm using pymel for this. -- 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 python_inside_maya+unsubscr...@googlegroups.com. To view

[Maya-Python] See which faces are affected by polyChipOff?

2017-11-30 Thread Erik Spellerberg
I am extracting objects using mel.eval('performPolyChipOff 0 0;'), but I don't know which of the resulting meshes is the one belonging to the faces i selected previously. Maya does not always order them the same way. So I'm thinking I can check which faces are affected by the resulting

Re: [Maya-Python] Re: Widgets not updating when docked using workspaceControl PySide2/Maya2017

2017-08-15 Thread Erik Johansson-Evegård
Can't get it to show on top anymore either. Always docks below the other tabs On Tue, Aug 15, 2017 at 11:08 AM, Erik Johansson-Evegård < erik.johansson.eveg...@gmail.com> wrote: > Whole interface goes crazy when running the code and sometimes selection > do not work. > > On

Re: [Maya-Python] Re: Widgets not updating when docked using workspaceControl PySide2/Maya2017

2017-08-15 Thread Erik Johansson-Evegård
Whole interface goes crazy when running the code and sometimes selection do not work. On Tue, Aug 15, 2017 at 10:53 AM, Erik Johansson-Evegård < erik.johansson.eveg...@gmail.com> wrote: > Seems to still work like shit in maya 2018. Seriously. > > On Tue, Aug 8, 2017 at 4:13 A

Re: [Maya-Python] Re: Widgets not updating when docked using workspaceControl PySide2/Maya2017

2017-08-15 Thread Erik Johansson-Evegård
Seems to still work like shit in maya 2018. Seriously. On Tue, Aug 8, 2017 at 4:13 AM, Michael Boon wrote: > I few days ago I ran a script from the Script Editor, which ran a robocopy > from a network location, and contained a call to processEvents. It created > an

Re: [Maya-Python] Re: Widgets not updating when docked using workspaceControl PySide2/Maya2017

2017-05-18 Thread Erik Johansson-Evegård
Never solved it. Kinda giving up on maya and autodesk lately overall. Just one of many things not working that should just work. On Thu, May 18, 2017 at 12:28 AM, wrote: > I'm noticing a similar defect myself and was scouring the interwebs to > hopefully find an resolution.

[Maya-Python] Widgets not updating when docked using workspaceControl PySide2/Maya2017

2017-03-07 Thread Erik Johansson-Evegård
edit=True, tabToControl=[mayaPanelName, -1], widthProperty="preferred", minimumWidth=620) bar.raise_() Cheers, Erik -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group

Re: [Maya-Python] Re: MayaPy 2017 PythonInterpreter crash

2017-01-26 Thread Erik Karlsson
; >> Justin >> >> >> On Fri, Jan 27, 2017, 4:00 AM Robert White <robert@gmail.com> wrote: >> >>> I've had the interpreter crash a lot on exit due to plugins not >>> unloading cleanly. Might be worth trying it with all of them disabled? >>

Re: [Maya-Python] Re: MayaPy 2017 PythonInterpreter crash

2017-01-26 Thread Erik Karlsson
; >> Justin >> >> >> On Fri, Jan 27, 2017, 4:00 AM Robert White <robert@gmail.com> wrote: >> >>> I've had the interpreter crash a lot on exit due to plugins not >>> unloading cleanly. Might be worth trying it with all of them disabled? >>

[Maya-Python] MayaPy 2017 PythonInterpreter crash

2017-01-26 Thread Erik Karlsson
since I get a crash for every file in the loop, I need to click the annoying "Interpreter has stopped working" window for it to continue. So I managed to process 100 maya files with 100 clicks, which is not ideal... thanks! /Erik -- You received this message because you are subscr

Re: [Maya-Python] AbcImport without creating a new AlembicNode when updating animation

2016-10-08 Thread erik . johansson
Autodesk support says I have to do my own cleanup. Either by deleting history (removes AlembicNode) or some other way. So I guess that answers that. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from

Re: [Maya-Python] AbcImport without creating a new AlembicNode when updating animation

2016-09-28 Thread Erik Johansson-Evegård
it again with Maya 2016 and the problem still being > there). > > Good luck! :D > > On Monday, September 26, 2016 at 9:36:01 PM UTC+2, Erik Johansson-Evegård > wrote: >> >> Doing the reference dance at the moment but thought i'll try and do what >> seems to be the re

Re: [Maya-Python] AbcImport without creating a new AlembicNode when updating animation

2016-09-26 Thread Erik Johansson-Evegård
he path of > the reference your variable instead. > ​ > > On 26 September 2016 at 20:14, Erik Johansson-Evegård < > erik.johansson.eveg...@gmail.com> wrote: > >> Been bashing my head against this today. >> >> import maya.cmds as mc >> m

[Maya-Python] AbcImport without creating a new AlembicNode when updating animation

2016-09-26 Thread Erik Johansson-Evegård
Been bashing my head against this today. import maya.cmds as mc mc.AbcImport('/path/to/alembic/animation1.abc', mode='import', connect='|path|to|lookdev|asset') This works fine and dandy and the lookdev asset moves as it should. However then I wan't to switch to a new animation and have tried

[Maya-Python] Re: align plane with face normal

2016-02-17 Thread Erik Spellerberg
You could try the mel command snap3PointsTo3Points() cmds.select (vertices_snap_to[:3], r=True) cmds.select (vertices_snap[:3], addFirst=True) mel.eval("snap3PointsTo3Points(0)") On Tuesday, February 9, 2016 at 7:05:34 PM UTC+1, med@gmail.com wrote: > > Hi, I'm new in python , I try to make

[Maya-Python] PyQt4: List QCheckBox items in layout

2015-04-02 Thread Erik Spellerberg
Hey guys, I have a PyQt4 question for you. I have a layout containing only a bunch of checkboxes, and rather than querying the state of every one manually I want to loop over the items in the layout, then simply grab their label if they are active. for i in

Re: [Maya-Python] PyQt4: List QCheckBox items in layout

2015-04-02 Thread Erik Spellerberg
You are absolutely right, it was hiding right there in front of me. Thank you very much! -- 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

Re: [Maya-Python] mayapy crashing when done

2014-06-12 Thread Erik Johansson-Evegård
Think I forgot to say thanks for: cmds.file(new=True, force=True) os._exit(0) Works great. No more crazy errors. Cheers, Erik On Wed, May 14, 2014 at 11:23 PM, Justin Israel justinisr...@gmail.com wrote: I actually just encountered a similar situation with a Qt app, where at shutdown

[Maya-Python] mayapy crashing when done

2014-05-14 Thread Erik Johansson-Evegård
, std::allocatorstd::pairstd::string const, TprepareRenderCmd::RegistryEntry , false::~unordered_map() exit __libc_start_main /usr/autodesk/maya2014-x64/bin/python-bin() [0x400619] Anyone got some idea on where to start digging? Cheers, Erik -- You received this message because you

Re: [Maya-Python] mayapy crashing when done

2014-05-14 Thread Erik Johansson-Evegård
Same error with sys.quit() and just not doing anything at all. Good news tho. It is when xgen is loaded it crashes. Guess that is one to pass along to autodesk. Cheers, Erik On Wednesday, May 14, 2014 9:37:11 PM UTC+2, Justin Israel wrote: Maybe it is the force quit using the Maya command