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...
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!
...
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...
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...
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
...
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...'...
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...
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...
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...
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") -...
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...
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 ...
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...
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...
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 _...
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.
...
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...
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?
...
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...
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
...