Graphing only file nodes in hyperShade?

Hi, i'm trying to write a small mel that would only graph the file texture nodes in the hypershade, without any upstream or downstream connections. The Texture tab is just to crouded with all the procedurals textures and projection boxes. Basicaly I wanna have the same type of graph as the upper texture tab, but only for file textures nodes.

I can't find the command to modify what is graphed in the hyperShade. I've tried the mel command hyperShade with a lot of flag, but it doesn't return me any error and it just doesn't do nothing. The only way I could do it is to do a echo all command and copy from the history window. But since I can only graph upstream or downstream or both, it's not what i want. So it's what I could called a BAD thing.

Here is my mindblowing code so far:

string $allFileTexture[] = ls -type file;
select $allFileTexture;
hyperShadePanelGraphCommand("hyperShadePanel1", "showDownstream");

thanks for the help.

global proc Signature ()
{
string $name =

string $allFileTexture[] = ls -type file;
select $allFileTexture;
hyperShadePanelGraphCommand("hyperShadePanel1","showUpstream");

//then collapse all the upstream connections
string $each;
for($each in $allFileTexture)
hyperShade -clp $each graph1HyperShadeEd;

you can then rearrange your graph after you hide all the upstream connections.

hope it helps!

oh i see what you're trying to do now...

if you open up hypershadePanel.mel and collectionUI.mel from your script/others folder you can add this functionality with just a few lines.

//hypershadePanel.mel
//line:3202
menuItem
-label "Files Only"
filesFilterItem;

//line:2988
else if ($filter == "Files Only")
{
$filter = "FilesOnly";
}

//then added functionality for this filter in
//collectionUI.mel
//line:394
else if ($filter == "FilesOnly")
{
visor
-addFolder
-name "Files"
-type command
-cmd "ls -type file"
$hypershadeName;
}

now when you create a new tab in hypershade you can specify "files only" along with the other presets.

later.

Edited by giedi` on 08/25/01 11:47:21 PM.

Wow! thanks a lot. I didn't know I could access files and add new menus to default panels.

I'll play with that now And mess up Maya by the same time But it will be fun as hell!

Thanks

global proc Signature ()
{
string $name =

Ok I just did the changes you proposed! This ROCK!

I just love to be able to add new fonctionalities like that! I can't thank you enough, everyone here will love that new files only tab.

global proc Signature ()
{
string $name =