Re: [Maya-Python] system functions

2015-09-01 Thread Emre Yilmaz
Yeah, good point. Didn't catch that those system / pipeline cmds were themselves also python. On Tuesday, September 1, 2015, Marcus Ottosson wrote: > Subprocess is really only good for external processes, and less so for > Python functions. > > Threading to the rescue! > > import timeimport thr

Re: [Maya-Python] system functions

2015-09-01 Thread Emre Yilmaz
I've used subprocess for this. import subprocess myCmd = "ping -n 5 8.8.8.8" # Wait subprocess.Popen( myCmd, shell=False, bufsize=4096 ).wait() # No wait subprocess.Popen( myCmd, shell=False, bufsize=4096 ) On Tuesday, September 1, 2015, Todd Widup wrote: > I have several functions that run

Re: [Maya-Python] C++ Programming for Autodesk Maya

2014-10-08 Thread Emre Yilmaz
PS, is the IRC freenode.net channel a chat service-- does it have an archive of discussions there like the one for the "Python Inside Maya" (or really Maya API in Python and C++) group? On Wed, Oct 8, 2014 at 9:37 AM, Emre Yilmaz wrote: > Re: <> > > I'm pretty

[Maya-Python] C++ Programming for Autodesk Maya

2014-10-08 Thread Emre Yilmaz
Re: <> I'm pretty sure that it *IS* possible to rename a Google Group and change its description. I'm judging from a quick search and landing on pages like this one: https://support.google.com/a/answer/167102?hl=en https://sites.google.com/site/tomihasa/google-groups-faq#renamegroup It looks lik

[Maya-Python] OpenMaya accessing shape node after creation

2013-12-18 Thread Emre Yilmaz
Much better, unless I am misunderstanding your need: import pymel.core as pm # Create locator locPN = pm.spaceLocator(n="myLocator") # Get its shape node locShapePN = locPN.getShape() # Print out name of shape node print locShapePN.name() A lot (not all) of OpenMaya's functionality is integrat

[Maya-Python] Maya API/MakePaintable question

2013-09-10 Thread Emre Yilmaz
My memory is that you just set the default value you want on the attribute, like you would with other attributes like non-array attributes, before you make it paintable. When it is paintable, it'll still have that default value and you should see it that way in the Artisan tools. In other words, t

Re: [Maya-Python] Move a rotation pivot in the API

2012-10-03 Thread Emre Yilmaz
The first thing I'd try is changing transformFunc.setRotation(quat) at the end to set to the whole matrix rather than just setting rotation: transformFunc.set(tm) If I'm understanding right, the effect you want is that if the cube is at tx=10, and then you run the code, the cube will rotate aroun

Re: [Maya-Python] Re: anyone here experienced with ffmpeg?

2012-09-28 Thread Emre Yilmaz
One thing the OP said that jumped out for me-- "Is it because h.264 doesn't like my resolution? When I playblast at 1920x1080 it seems to always work." How much choice do the users of your tool have over image size? While I'm not familiar with ffmpeg on windows, I have a memory that h.264, MPEG-4

[Maya-Python] input and output attrs as children under the same compound array?

2012-05-19 Thread Emre Yilmaz
Is there any gotcha with putting input and output attributes as children under the same compound array? Details: I have a node with a compound array attribute. For each item I'm handling, I get input data and compute an output. I've usually structured these cases like this: Input data: itemsI

Re: [Maya-Python] Re: What's faster, API(2) or native Python?

2011-10-18 Thread Emre Yilmaz
This whole discussion is making me curious, does anyone know what of Maya's API code is hardware accelerated? Obviously Maya makes heavy use of the graphics card in general. But I'm wondering if some relatively agnostic use of the API like, say, a bunch of MVector normalizations or MMatrix multip

Re: [Maya-Python] Which editor do you use?

2011-07-09 Thread Emre Yilmaz
Since we're on the topic, I just started using Eclipse with Maya and ran into two confusions. 1) Sending cmds to Maya directly from Eclipse? There was a plugin on Creative Crash from Ron Bublitz to do this, but it didn't seem to work for me (due I think to my too-new Eclipse version.) Is there a

Re: [Maya-Python] OpenCV

2010-11-24 Thread Emre Yilmaz
I used an earlier version of OpenCV ages ago though via C++ not Python, and recently got interested in playing with it again... curious to compare notes as things evolve! On Wed, Nov 17, 2010 at 4:58 AM, Robert Butterworth wrote: > About to start work on that myself. > > I'll keep you guys poste