Re: [Maya-Python] MDGModifier or MDAGModifier based on node type?

2019-08-02 Thread David Lantos
right? A DAG node is a DG node, but > not all DG nodes are DAG nodes. > > Ravi > — > "There are no dumb questions" - Carl Sagan. > > On Aug 1, 2019, at 22:15, David Lantos > > wrote: > > Hi guys, > > I'm creating a "createNode(nodeType)" wr

[Maya-Python] MDGModifier or MDAGModifier based on node type?

2019-08-01 Thread David Lantos
Hi guys, I'm creating a "createNode(nodeType)" wrapper around maya api 2.0 How can I decide based on node type which one I need to use, MDGModifier or MDAGModifier? If I use MDAGModifier to create DG node it throws error. I didn't find function that tells me based on type is it DG type or DAG

[Maya-Python] Re: Compound array attribute with mesh data child issue

2019-04-11 Thread David Lantos
I got a solution from other forum. Since it's mesh data in the memory you can use only MDataHandle instead of MFnMesh. hDrivers = data.inputArrayValue(MyDeformer.aDrivers) for driverIdx in range(hDrivers.elementCount()): status = hDrivers.jumpToElement(driverIdx) if status:

[Maya-Python] Re: Compound array attribute with mesh data child issue

2019-04-07 Thread David Lantos
Sorry the identation went wrong, fixed here: > > > @staticmethod > def initialize(): > tAttr = OpenMaya.MFnTypedAttribute() > cAttr = OpenMaya.MFnCompoundAttribute() > > VertexSnap.aDriverMesh = tAttr.create('driverMesh', 'driverMesh', > OpenMaya.MFnData.kMesh) > >

[Maya-Python] Compound array attribute with mesh data child issue

2019-04-07 Thread David Lantos
Hi guys, I run into an issue, I created a compound array attribute with two children, an int array and mesh data attributes. I copied here the part of the code, removed the unnecessary parts. I create a deformer and I connect the driver mesh into the "driverMesh" attribute. The error I got

Re: [Maya-Python] Re-Create nConstraints by API

2018-01-15 Thread David Lantos
Ok, meanwhile I just realized there is ".componentIndecies" attribute. Somehow it was hidden. Now I have everything to recreate. Thanks! 2018. január 15., hétfő 11:05:34 UTC-8 időpontban Marcus Ottosson a következőt írta: > > Something I typically do when trying to figure out how to populate

Re: [Maya-Python] Re-Create nConstraints by API

2018-01-15 Thread David Lantos
Sorry I did a bit mistake. I would like to store (like in json) the data used for creating nConstraint. What I actually need is the component ids per mesh. I got NId from nComponent that seems useless for me. Is there any way to get component list from nComponent? 2018. január 15., hétfő

[Maya-Python] Re: MItDependencyNodes missing Maya 2016 API 2.0?

2017-12-12 Thread David Lantos
It looks like this class added since Maya 2016 Extension 2. 2017. december 9., szombat 14:35:02 UTC-8 időpontban David Lantos a következőt írta: > > Hi Everyone! > > > I found MItDependencyNodes > <http://help.autodesk.com/cloudhelp/201

[Maya-Python] MItDependencyNodes missing Maya 2016 API 2.0?

2017-12-09 Thread David Lantos
Hi Everyone! I found MItDependencyNodes class in the maya documentation but not in the maya.api.OpenMaya module. It looks like this particular class is missing. I did wrong

[Maya-Python] HIK Character Definition coding issue

2017-10-13 Thread David Lantos
Hi Guys! I got a problem with automatizing character definition loading. I wrote a script that try to create and load character definition but when I use "LoadHIKCharacterDefinition" and "SaveHIKCharacterDefinition" got error: # RuntimeError: Bad File. No Character loaded # It looks like

Re: [Maya-Python] Pymel error

2015-05-21 Thread David Lantos
? from the command-line, with mayapy? On Wed, May 20, 2015 at 1:09 AM, David Lantos dlan...@gmail.com javascript: wrote: Hi elrond79! I attach the full error message: # pymel.core : Updating pymel with pre-loaded plugins: mayaHIK, tiffFloatReader, ArnoldExport, bifrostvisplugin

Re: [Maya-Python] Pymel error

2015-05-20 Thread David Lantos
menus. Once I have a full traceback, I may be able to help... On Tue, May 19, 2015 at 7:50 AM, David Lantos dlan...@gmail.com javascript: wrote: Hi guys! I wrote a script that using pymel. It works on 5 computers but on one doesn't, so I think the script is ok. There was a maya2015

[Maya-Python] Maintaining python kwargs both short and long keywords (maya flag)

2015-01-07 Thread David Lantos
Hi guy! I am just wondering have you guys a good solution/method to maintain python kwargs both short and long keywords with the same value. (I have a couple of ideas just I am courius someone has better one.) For example: There is a method that eats one keyword at time (for example: longFlag

Re: [Maya-Python] logging and maya script editor

2014-03-03 Thread David Lantos
Ok, I've found a solution. - http://nullege.com/codes/show/src@p@y@pymel-HEAD@m...@utils.py 2014. március 3., hétfő 19:40:07 UTC+1 időpontban David Lantos a következőt írta: I've got error, MayaGuiLogHandler wants something to eat: # Error: unbound method __init__() must be called

Re: [Maya-Python] logging and maya script editor

2014-03-03 Thread David Lantos
I've got error, MayaGuiLogHandler wants something to eat: # Error: unbound method __init__() must be called with Filterer instance as first argument (got MayaGuiLogHandler instance instead) # Traceback (most recent call last): # File maya console, line 1, in module # File C:\Program

Re: [Maya-Python] logging and maya script editor

2014-03-03 Thread David Lantos
script-editor. - Email developer the traceback msg ( feature that isn't on GitHub, but you could add easily to FATAL if you wish ) hope it helps anyone, feel free to contribute or branch this git. On Monday, March 3, 2014 10:49:02 AM UTC-8, David Lantos wrote: Ok, I've found a solution

Re: [Maya-Python] how to inherit transform class fropm pymel

2014-02-21 Thread David Lantos
Thank you guys the answers. I have developed a big-system in pymel, and I would just like to use the advatage of pymel and I think I will write more wrappers top of it. If something is good why change it or rewrite, do I? I mean the class, pymel.core.Attribute is well-designed (I mentioned in