maya

Unexplained file not found for an existing file

Following is the error that occurs in this part of the code. Although the path is valid, a RuntimeError occursstrange. What is happening, and how can I get this to work? for root,dirs,files in os.walk(self.path): for f in files : if (f.split('.')[1] == "mb"): z = utils.executeInMainTh...

maya export to flash 10

Adobe released flash 10 with 3d support but I can't seem to find any good information on how best to export a model from Maya to Flash. Is there a tutorial on how to do this? thanks! ...

In MAYA 2009, is it possible to capture the cube rotate event?

I need to call a function ( Maya-Python ) based on cube rotationX. For that I have to capture the event, programmatically. I tried using while loop but It stucks in the loop, Nothing can be done in that time. I tried theading (python), still same. Can it be done this or other way? If yes, How? Maya 2009 in Windows XP Some failed code...

maya2008 win32api 64 bit python

How is it possible to run import win32api successfully on a 64bit maya version 2008? The following error occurs: Error: No module named win32api Traceback (most recent call last): File "", line 1, in ImportError: No module named win32api I need to get mouse cursor position in python so that I can place window exactly in that posi...

Graphics for iPhone development from Maya

Hello, I am new to integrating graphics into iPhone apps and need some direction on integrating graphics from maya into the application flow. Does anyone out there have any advice on good books or tutorials covering the design flow for Maya -> iPhone SDK? Thanks ...

super function doesn't work inside a maya python module

Somehow, this works fine in the Maya/Python script editor, but fails when it's inside of my module code. Anyone have any ideas? class ControlShape(object): def __init__(self, *args, **kwargs): print 'Inside ControlShape...' class Cross(ControlShape): def __init__(self, *args, **kwargs): print 'Entering Cross...'...

How to automatically execute python script when Maya first loaded

Hi, I am new to Maya and trying to figure out how to use Python in Maya. I wanted to create a shelf in Maya and when I click that shelf, it will execute a file containing python code. First thing, I figured out that we can't simply "source" python script. I followed tutorial from http://www.rtrowbridge.com/blog/2008/11/maya-python-impor...

How RPG characters are made

If RPG with the ability to change armors and clothes are made, how is it done? I mean the 3d side mostly If i make normal character, that has flat clothes, it would be easy, just change textures, but question is about armors, which have totally different models. So are only armor models recreated or character model with armor? How is i...

3D triangulation algorithm

Does anybody know what triangulation algorithm Maya uses? Lacking that, what would be the most probable algoritms to try? I tried a few simple off the top of my head (shortest/longest resulting edges, smallest minimum angle, smallest/biggest area), but they where all wrong. Is Delaunay the most plausible algoritm? Edit: by the way, pseu...

error when call python object thru MEL code

Hi, How to resolve this. Following error occurs from maya. I am doing the following in Filemenu.mel file. this runs at the startup. python("import saveCentral_fromPath"); . . . global proc runSaveCentral() { python("saveCentral_fromPath.saveCentral()"); python("a._first_()"); } . . . menuItem -label ("save Central") -...

Maya Programming: Separating attributes into sections in the attribute editor

Hi, Sorry to be so application specific, but I noticed another well answered post about Maya development. I've just written a plugin node for Maya. It just kills a bunch of particles according to a turbulence function. The turbulence is driven by a number of attributes that are adjustable in the attribute editor. In the attribute edito...

Best Practice for High Poly Model to interactive Flash

Our 3D designer has made some Maya models which look great because of their high poly count. I'd like to create interactive versions of these models bound for our website leveraging Flash/Actionscript. I'm not having problems accomplishing this basic task using small models. However the complex models we've created are just too large ...

Speeding up Autodesk Maya's Vector Renderer

I have a scene composed mainly of NURBs, which I want to render in the Vector renderer strictly for the look it gives me--not the vector it delivers. I first convert the NURBs to a very low-res polygon mesh (by control point), which gives me a very light scene. However, my renders are taking a really, really long time (like 5 minutes f...

Creating a UI in maya using python scripting

Hi all, I am creating a custom UI inside maya using python. I encountered some errors, Hope you guys could help. I attached my script below. Basically my script is trying to create a UI with buttons inside that do stuffs. In this case, I am trying to create a textfield button which the user keys in a set of coordinates and the locator ba...

Creating a Maya UI

Hi all, I am creating a maya UI but when I try to run my loadobject button command twice after I run my replace_name button once in maya I get this error: cmds.textFieldButtonGrp(self.loadobject, e=True, text=select_objects[0]) RuntimeError: Hope someone could help me fix this. Thanks. import maya.cmds as cmds class MyUI: def _...

Find centre point in autodesk maya

how to find the centre point in autodesk maya...I know use the centre pivot but i can't find the point..how to find the exact coordinate of the 3d object created using autodesk maya? thanks. ...

How do I use Python socket ports and make sure that windows won't block them (like ipmsg.exe for example)? (involving maya)

Hi, I am trying to create a Maya to Maya interface using Python so I could possibly make a game from within Maya that runs on two different computer. I have successfully written ways to send commands from one Maya to another using the command "commandPort." The problem is when I start sending commands from another computer, it fails.I g...

Using MAYA 3D Model in a .Net application

If I want to render a 3D model created by Maya and do some animation with it in a .net application what should be my choice of platform - plain WPF or XNA? ...

python update class instance to reflect change in a class method

As I work and update a class, I want a class instance that is already created to be updated. How do I go about doing that? class MyClass: """ """ def __init__(self): def myMethod(self, case): print 'hello' classInstance = MyClass() I run Python inside of Maya and on software start the instance is created. When I call classInst...

python version for maya and other 3d apps

I have a couple small projects that I want to use to learn python what version should I be using if I want to move to scripting for maya, blender, etc later. also what resources are there for scripting for those programs ...