Maya Ascii

41 views
Skip to first unread message

Vitor Lôbo Ramos

unread,
Dec 11, 2009, 12:27:56 AM12/11/09
to python_inside_maya, vitaumm...@gmail.com
It is possible to translate a file.ma (Ascii) Maya for python? how do
I? if not possible, at least, it is possible to decode to understand
and add in python?

Exemple:

setAttr ".fl" ( fl signification ? )
setAttr ".coi" ( coi is? )
setAttr ".imn" ( imn is? )
setAttr ".den" ( .... )
setAttr ".man" (.... )
setAttr ".tp" (....)
setAttr ".hc" (.....)

through material that I can understand the meaning of " abbreviations
" ???

Phil Sloggett

unread,
Dec 11, 2009, 12:35:21 AM12/11/09
to python_in...@googlegroups.com
fl, coi, imn, etc.... are short names of attributes. these will vary node to node obviously. the node itself should be indicated above the setAttr lines.
python equivalent would be along the lines of

import maya.cmds as mc

mc.setAttr(node+'.fl',val)
mc.setAttr(node+'.coi',val)
...etc

where val is a value that I assume you've omitted from your example that should come after each setAttr call. To translate this to python I dont think you should ever need to know what exactly those attributes are. I havent tried it and dont really like it, but you may be able to use the same sort of style they use there and omit the "node +" that I included in my example above.

2009/12/11 Vitor Lôbo Ramos <vitaumm...@gmail.com>

Vitor Lôbo Ramos

unread,
Dec 11, 2009, 8:11:11 AM12/11/09
to python_inside_maya
Phil Sloggett wrote:


In fact, my intention to understand the command in python, it is only
for study. As material in maya python is still low compared to other
languages such as honey, I try to take advantage of language honey,
ascii, and other resources of the Maya, to study python.

I wonder ..... what the value equivalent in ascii, for python. But if
this is not possible, thank you for the tip.

loogle.com/group/python_inside_maya

Vitor Lôbo Ramos

unread,
Dec 11, 2009, 8:12:17 AM12/11/09
to python_inside_maya, vitaumm...@gmail.com

Vitor Lôbo Ramos

unread,
Dec 11, 2009, 9:03:46 AM12/11/09
to python_inside_maya, vitaumm...@gmail.com
correction ( my bad english sorry )

In fact, my intention to understand the command in python, it is only
for study. As material in maya python is still low compared to other
languages such as MEL, I try to take advantage of language MEL,
ascii, and other resources of the Maya, to study python.

I wonder ..... what the value equivalent in ascii, for python. But if
this is not possible, thank you for the tip.

if someone can delete the flood that I accidentally, I


loogle.com/group/python_inside_maya

Ted Charlton

unread,
Dec 11, 2009, 10:12:59 PM12/11/09
to python_in...@googlegroups.com
File/Save As/Options...
Maya Ascii / Use Full Names for Attributes on Nodes
Cheers.

2009/12/11 Vitor Lôbo Ramos <vitaumm...@gmail.com>
correction ( my bad english sorry )

saveAs.jpg
fullNameAttributes.jpg

Vitor Lôbo Ramos

unread,
Dec 13, 2009, 6:59:24 AM12/13/09
to python_inside_maya

That's what I was looking for. Thank you very much


On Dec 12, 12:12 am, Ted Charlton <ted.charl...@gmail.com> wrote:
> File/Save As/Options...
> Maya Ascii / Use Full Names for Attributes on Nodes
> Cheers.
>
> 2009/12/11 Vitor Lôbo Ramos <vitaummprima...@gmail.com>
> saveAs.jpg
> 67KViewDownload
>
> fullNameAttributes.jpg
> 30KViewDownload
Reply all
Reply to author
Forward
0 new messages