[Maya-Python] Re: textField example...

2013-04-24 Thread DayDreamer
On Wednesday, October 24, 2012 4:09:14 PM UTC+5:30, Daz wrote: Heya One of my ancient enemies since I'm learning python are text fields... I just cant figure out how to get them to work arrr. I want to be able to type in a name and then use it with my functions, when ever I want to

[Maya-Python] Getting this error

2013-04-24 Thread Diana Chacha
Hello I am getting this error when I run my following code. Could somebody help me figure out what I could add or replace since it did work before now it is not. CODE THAT I WANT TO RUN: import maya.cmds as cmds def main(): root_LOC=cmds.spaceLocator (n = 'root_LOC', r = 2) cmds.move

Re: [Maya-Python] Getting this error

2013-04-24 Thread b...@fie.us
If I paste this code into my console, I don't get an error. perhaps you have accidentally modified the cmds module in memory. Maybe you've set a function to a list. -brad On Apr 24, 2013, at 11:26 PM, Diana Chacha dayanacha...@gmail.com wrote: import maya.cmds as cmds def main():

Re: [Maya-Python] Getting this error

2013-04-24 Thread Diana Chacha
I will try that, but it was working find before. Did you run it in maya? On Wed, Apr 24, 2013 at 8:41 PM, b...@fie.us b...@fie.us wrote: If I paste this code into my console, I don't get an error. perhaps you have accidentally modified the cmds module in memory. Maybe you've set a function

Re: [Maya-Python] Getting this error

2013-04-24 Thread b...@fie.us
Yes… otherwise I think it would have bombed upon importing maya.cmds… On Apr 24, 2013, at 11:56 PM, Diana Chacha dayanacha...@gmail.com wrote: I will try that, but it was working find before. Did you run it in maya? On Wed, Apr 24, 2013 at 8:41 PM, b...@fie.us b...@fie.us wrote: If I

[Maya-Python] Re: Getting this error

2013-04-24 Thread DayDreamer
I also didn't find any error. But I like to point out couple other things in your code. 1. root_LOC=cmds.spaceLocator (n = 'root_LOC', r = 2) cmds.move (0, 18.485, -2.815, 'root_LOC', relative=True) here, you making a loctor in maya and assigning it to the variable name root_LOC, but in

[Maya-Python] Re: copy mesh by points

2013-04-24 Thread Paul Winex
среда, 24 апреля 2013 г., 3:17:49 UTC+4 пользователь vux написал: I have one meshData and pointsArray. I need copy mesh from meshData by points in pointsArray and have reult meshData with all copied polygons. Need fast solution. http://somesanctus.blogspot.ru soudce code included -- You

[Maya-Python] Re: copy mesh by points

2013-04-24 Thread Paul Winex
среда, 24 апреля 2013 г., 3:17:49 UTC+4 пользователь vux написал: I have one meshData and pointsArray. I need copy mesh from meshData by points in pointsArray and have reult meshData with all copied polygons. Need fast solution. Я забыл, ты не любишь читать исходники чужие:) -- You received

[Maya-Python] Re: Getting this error

2013-04-24 Thread DayDreamer
Edit:- The Move command should be cmds.move (0, 18.485, -2.815, root_LOC[0], relative=True) -- 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

[Maya-Python] Re: copy mesh by points

2013-04-24 Thread Paul Winex
среда, 24 апреля 2013 г., 3:17:49 UTC+4 пользователь vux написал: I have one meshData and pointsArray. I need copy mesh from meshData by points in pointsArray and have reult meshData with all copied polygons. Need fast solution. Конечно можешь пересилить себя и попросить исходники, но можно