About 8,650,000 results
Open links in new tab
  1. MAYA Python: getting the position of selected object using getAttr

    cmds.select(item, r=True) # replace the original selection with one item print cmds.getAttr(".translateX") # if the name is only an attribute name, Maya # supplies the current …

  2. Maya Python: cannot import name 'cmds' from 'maya.cmds'

    Jul 23, 2022 · From what I've researched there seems to be minimum to no difference between "import maya.cmds as cmds" and "from maya.cmds import cmds" unless someone can explain …

  3. how to make selected object renamed in maya using python?

    Oct 11, 2020 · But in the rename function, you use again a string 'a'. So maya searches for an object called 'a' and tries to rename it what does not work unless you really have an object …

  4. Maya python get top most parent transforms - Stack Overflow

    May 4, 2021 · I have a selection of transforms in maya and I want to get the top parent transforms of all hierarchies within the selection. Is this the best way to achieve that? import maya.cmds …

  5. Maya python delete button from layout with popup menu

    Apr 14, 2023 · 1 I would like to remove a button with a right click popup menu. My current setup crashes maya at the cmds.deleteUI...

  6. python - batch fbx export in maya - Stack Overflow

    Mar 12, 2023 · import maya.cmds as cmds from CreatureExport import CreatureAnimBakeProcess def exportAllAnim(): path = r'F:\Characters\Creatures\Animation' …

  7. Getting all materials attached to object throughout all render …

    # Gets all shaders attached to the current renderLayer for all objects in "group1" import maya.cmds as cmds cmds.select("group1") allChildren = cmds.listRelatives(ad=1) for …

  8. Python Maya reference - Stack Overflow

    Jan 16, 2023 · I've tried your script and there are two issues I found when you remove reference you have a type mayaAscii, while I see that your references files have extension .mb, so I …

  9. Set Maya Display Layers to Off with PythonScript

    Feb 11, 2021 · If you trace the Maya commands that occur on a layer visibility change, you get pointed to setDisplayLayerVisibility() in layerEditor.mel. More specifically to this MEL …

  10. How to get the name of a selected Object Python Maya

    Mar 23, 2017 · 5 cmds.ls will return a list, you need to check the list and delete what ever you want to delete, and sn is very bad always use long name because there can be duplicates.