Ideas on how to open the Hypershader with a filter in place?

161 views
Skip to first unread message

Geoff Harvey

unread,
Jan 23, 2014, 3:20:16 PM1/23/14
to python_in...@googlegroups.com
I've found myself in a situation where I'm stuck with a whole lotta Maya (V-Ray) materials in a scene.

Naturally, Maya grinds to a halt whenever I attempt to open the Hypershader -- too many things to display, so I'm wondering if anybody has had any luck finding a way to open the Hypershader with a filter already in place.

Anybody have any ideas?

Thanks,

hoaf

Ævar Guðmundsson

unread,
Jan 23, 2014, 7:00:18 PM1/23/14
to python_in...@googlegroups.com
  Good one here on how to do this
http://mayastation.typepad.com/maya-station/2010/05/button-to-disable-thumbnails-update-in-hypershade-.html

 Mostly it's just making sure to run maya.cmds.renderThumbnail to be on or off, the thumbnail renders then get saved into .mayaSwatches on your hard drive

  Hope this helps
--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAH5d3sAhh%3DRKV192r9ttAB%3D97qtKJt5iD7DDhLPDYYbTM%3DZ8dg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Christopher Stewart

unread,
Jan 24, 2014, 3:16:07 PM1/24/14
to python_in...@googlegroups.com
VRay also has it's own toggle to disable thumbnail rendering. One that
persists between scene loads. For people like me who often forget to
hit a toggle before attempting to open the hypershade.
> https://groups.google.com/d/msgid/python_inside_maya/2D566858-1D3C-4557-AA5C-E28E4F508B7B%40gmail.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.



--
----
Christopher Stewart
Vancouver, BC
3D TD | VFX IT

Geoff Harvey

unread,
Jan 24, 2014, 3:17:53 PM1/24/14
to python_in...@googlegroups.com
It's not the thumbnails -- it's the sheer quantity of nodes!

hoaf


Ævar Guðmundsson

unread,
Jan 24, 2014, 3:32:45 PM1/24/14
to python_in...@googlegroups.com

Interesting
a)
  just how many nodes are you using?
b)
  Are they all active and used in the same scene? 
c)
  Do you have a lot of file references, textures etc. linked in and working on a network server rather than a hard drive?
d)
  How much memory does your machine have?

  I'm asking since it does take a considerable amount of non-thumbnail nodes to slow down the hypershade but to date I've never seen a scene which requires enough nodes so the editor itself struggles to list them.... ( I'd guess running a few optimisation tricks on the scene, splitting the shaders into sets and selectively load them into the scene, or even do you shader assignment so that it dynamically imports the shaders at render time.  Those would be easy ones to lighten up the scene, but hard to say for sure without an example or a node reference number)

Marcus Ottosson

unread,
Jan 25, 2014, 4:09:13 AM1/25/14
to python_in...@googlegroups.com
If you could find a way to select them, without the hypershade, then I would suggest opening up the hypershade with just the "Work Area" and hit "add to graph".

In Python, you could select via filter by doing something like

from maya import cmds

cmds.select(deselect=True)
for sel in cmds.ls(selection=True):
    if 'my_keyword' in sel:
        cmds.select(sel)



For more options, visit https://groups.google.com/groups/opt_out.



--
Marcus Ottosson
konstr...@gmail.com

David Moulder

unread,
Jan 25, 2014, 7:29:34 AM1/25/14
to python_inside_maya
There is a node that all shaders are connected to "defaultShaderList1".  It's this node that when you type ls -mat the connections are returned from (you could connect any node to this and it would be returned as a material).  It's also this node that is used to show the materials in the hypershade tab.  So by unconnecting the vray materials from this node.  The hypershade wont see them.   Side effect is ls -mat wont see them either.  You could disconnect them from this node and connect them to a dummy node.  Or just scan nodes of type and reconnect them.





For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages