> there is a face
>
> pCylinder1.f[%d]
>
> and i need to save is pivot point location in a vary for relation in
> my model
To my knowledge, individual components don't have stored pivot points
- that's why, for instance, if you select a face, move it's pivot
point, and then deselect and reselect the face, it doesn't remember
that you changed it's pivot point.
As far as the pivot point that's displayed on screen, I don't believe
it's possible to query the UI for that sort of information directly.
If you need to get pivot center information for components
interactively, you can try taking a look at the
manipMove/Rotate/ScaleContext commands. If, however, you simply want
the "default" pivot point for components, it should be just the
bounding box center - it looks like you can get the bounding box by
using polyEvaluate with the boundingBoxComponent flag (and possibly
the accurateEvaluation flag? I have NO idea what the difference is, or
when you'd want the 'inaccurate' evaulation, or which is used by most
of the internal commands...).
> i will be more happy to have also some tips how i can find answers to
> this kind of questions
As far as how I generally try to find info, here are the first places
I hit (in no particular order... you probably know most already):
The Docs:
.../docs/Maya2008/en_US/CommandsPython/index.html /
.../docs/Maya2008/en_US/Commands/index.html
Try typing some terms into the substring search box of
(fast, but only searches the actual command NAMES for
substrings - however, if you get a hit here, decent chance it's
relevant!)
.../docs/Maya2008/en_US/Nodes/index.html
Depending on what I'm looking for, I can sometimes just get
something I need by a straight attribute query, so it's helpful to
look up the info for various nodes
(again, the substring search only searches the names of
nodes, which is generally even less helpful here than it is for the
command indices, since what you need is often in the attribute
names...)
.../docs/Maya2008/en_US/API/index.html
...sometimes the only way to do things is to get down with the API...
(again, substring search on class names only)
The search tab for .../docs/Maya2008/en_US/wwhelp/wwhimpl/js/html/wwhelp.htm
(more complete search, but slow...)
(to speed things up, you can restricting the booksto Developer
Resources/Commands/CommandsPython/Nodes/API - I generally just search
all books, though, since you can only search one at a time or all)
Online:
This group
http://groups.google.com/group/python_inside_maya
(yay!)
CGTalk / CGSociety boards:
CGTalk > Application Specific (3D) > Autodesk Maya > Maya Programming Forum
http://forums.cgsociety.org/forumdisplay.php?f=89
HighEnd3d:
3D Forums > Maya Boards > MEL
http://www.highend3d.com/boards/index.php?showforum=4
3D Forums > Maya Boards > API
http://www.highend3d.com/boards/index.php?showforum=270
3D Forums > Maya Boards > Python
http://www.highend3d.com/boards/index.php?showforum=723
(also, can be helpful to search the scripts - both to see if
someones's already made a script for your needs, or to take a look at
their code to see how they solved a problem)
http://www.highend3d.com/maya/downloads/mel_scripts/
Autodesk Area forums:
Forum Home > Autodesk Maya > MEL
http://area.autodesk.com/index.php/forums/viewforum/60/
Forum Home > Autodesk Maya > Python
http://area.autodesk.com/index.php/forums/viewforum/102/
Forum Home > Autodesk Maya > SDK
http://area.autodesk.com/index.php/forums/viewforum/50/
Forum Home > Autodesk Maya > Plugins - Extensions
http://area.autodesk.com/index.php/forums/viewforum/49/
Miscellaneous helpful sites:
http://www.comet-cartoons.com/3ddocs/mayaAPI/
http://ewertb.soundlinker.com/maya.htm
http://www.robthebloke.org/mayaapi.html
...if anyone else has any other resources they've found particularly
helpful, please share!
- Paul