Thank you Justin
I will explore this.
It takes time but this is a good way to find all commands in lowest level.


On Thu, Jul 21, 2016 at 1:38 PM, Justin Israel <[email protected]>
wrote:

> If you do some detective work you can find the way that command works:
>
> // mel
> whatIs hyperShadePanelMenuCommand
> // path to a mel script
>
> If you look through that mel script for the usage of "deleteUnusedNodes",
> it will bring you to a command like:
> MLdeleteUnused
>
> // mel
> whatIs MLdeleteUnused
> // path to another mel script
>
> If you read that script, you will see that the process of finding unused
> nodes is multiple stages. It looks at shading groups, and connections, and
> texture nodes, ..
>
> Justin
>
> On Thu, Jul 21, 2016 at 9:03 PM Mahmoodreza Aarabi <[email protected]>
> wrote:
>
>> Hey guys
>>
>> I want to know how can we get a complete list of all unused nodes in
>> maya, nodes that are detect with Optimize Menu, and after detecting it will
>> remove them.
>> Now i want to get all unused nodes before deleting them.
>>
>> there is any idea?
>>
>> this command will delete unused node in maya
>> hyperShadePanelMenuCommand("hyperShadePanel1", "deleteUnusedNodes");
>>
>> thanks in advance.
>> ​
>>
>> --
>> 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 to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/d7e8b811-2bbe-4dd3-971f-74d27fc8136e%40googlegroups.com
>> <https://groups.google.com/d/msgid/python_inside_maya/d7e8b811-2bbe-4dd3-971f-74d27fc8136e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0DvQeLRxdaznP%3DeSntFP0PxuZ20%3D7%3DCQf95_1%2BAM7PHg%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0DvQeLRxdaznP%3DeSntFP0PxuZ20%3D7%3DCQf95_1%2BAM7PHg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 


Bests,
madoodia

-- 
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 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CADvbQwJbQqbnETeB4WRcDeGfJfkvjWpih_8Kw609Me9x61ThAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to