![]() You can also use the full path of an object and split by |, but it's not necessarily as precise as it sounds - especially if the objects gets passed to your method by their short names. We more or less came up with the same code, so I suppose my answer to your question is Yes, this is probably the best way. To accomplish his goal of determining point positions within that particular portion through out the path he used Python API and here are some tips When you are working with the python API, there is a lot of information to take in. Output: Full hierarchy: |group10|group9|group8|group7|group6|group5|group4|group3|group2|group1|pCylinder1Įdit: Looks like I didn't read your question properly. Python: Maya: Check if Attribute Exists admin Python/MEL JJThis function test whether a particular attribute exists on a maya node and that its attributes have the correct parameters. Marco Giordano was looking one day, for a simple U parameter on an existing curve in Maya. Print('Full hierarchy: is top-level object'.format(target)) The most common use of ls is to filter or match objects based on their name (using wildcards) or based on their type. That is, all of the built-in Maya commands, such as sphere, ls, and so on, are accessible through Python. ![]() ![]() The implementation of Python scripting in Maya provides the same access to native Maya commands as is provided through MEL. ![]() How about something like this? Modify as needed to store the parents instead of just printing them. The ls command returns the names (and optionally the type names) of objects in the scene. Autodesk Maya supports the use of Python-style scripting wherever you used to use MEL commands. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |