[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

Re: [Maya-Python] How to run a certain function at every n seconds until tool is close

2019-08-01 Thread kiteh
Cool, noted on that, thank you all. Will try it out. -- 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] Setting the frame rate in Maya

2019-08-01 Thread Ravi Jagannadhan
As they say in German, “Gracias!!” "There are no dumb questions" - Carl Sagan. > On Jul 31, 2019, at 23:46, Juan Cristóbal Quesada > wrote: > > Hi Ravi, > for querying the fps in maya you can use the following maya command: > > maya.cmds.currentUnit(q=True, time=True) > > this will return a

Re: [Maya-Python] Setting the frame rate in Maya

2019-08-01 Thread Juan Cristóbal Quesada
Hi Ravi, for querying the fps in maya you can use the following maya command: maya.cmds.currentUnit(q=True, time=True) this will return a string code for the format as it is in prefs. For setting it you only need to use the edit flag. Hope it helps. El mié., 31 jul. 2019 a las 21:02, Ravi