Is it possible to remove some of the nodes, e.g. rating, and if so how?
/J
Remove Nodes
Moderator: Gurus
-
- Posts: 2157
- Joined: Fri Jan 14, 2005 1:45 am
- Location: Germany
- Contact:
It's possible via Script:
http://www.mediamonkey.com/forum/viewto ... highlight=
http://www.mediamonkey.com/forum/viewto ... highlight=
Thanks for the quick answer!
The problem is that I´m not very good at this, so if someone could walk me through the process I´d be very grateful.
First I create a file in the Scripts folder - "MyScriptsRemoveNode.vbs"
In it I write
Sub CallMe
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Rating)
End Sub
Is this correct?
Then I´m to define it in Scripts.ini, right?
I´ve tried this:
[RemoveNode]
FileName=MyScriptsRemoveNode.vbs
ProcName=RemoveNode
Order=6
DisplayName=RemoveNode
Description=Removes node Rating
Language=VBScript
ScriptType=1
But obviously this is´nt working...
The problem is that I´m not very good at this, so if someone could walk me through the process I´d be very grateful.
First I create a file in the Scripts folder - "MyScriptsRemoveNode.vbs"
In it I write
Sub CallMe
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Rating)
End Sub
Is this correct?
Then I´m to define it in Scripts.ini, right?
I´ve tried this:
[RemoveNode]
FileName=MyScriptsRemoveNode.vbs
ProcName=RemoveNode
Order=6
DisplayName=RemoveNode
Description=Removes node Rating
Language=VBScript
ScriptType=1
But obviously this is´nt working...
This is very cool stuff. I have removed everything I wanted, except for the 'Virtual CD', and 'Title' nodes.
Can someone give me advice on how to remove those 2?
Here's my script code:
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Artist)
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Rating)
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Album)
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Genre)
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Classification)
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Previews)
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Year)
I use magicnodes for my music browsing.
Can someone give me advice on how to remove those 2?
Here's my script code:
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Artist)
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Rating)
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Album)
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Genre)
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Classification)
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Previews)
SDB.MainTree.RemoveNode(SDB.MainTree.Node_Year)
I use magicnodes for my music browsing.
-
- Posts: 2157
- Joined: Fri Jan 14, 2005 1:45 am
- Location: Germany
- Contact:
-
- Posts: 2157
- Joined: Fri Jan 14, 2005 1:45 am
- Location: Germany
- Contact:
There is a way, but I need a few moments for it. Wait and see 
That it should be, but I haven't tested it yet.
It's taken from here

That it should be, but I haven't tested it yet.
Code: Select all
Dim strNode
strNode = SDB.Localize("Title")
Dim Node
Dim Nodes
Set Nodes = SDB.MainTree.Node_Library
if Not (Nodes is Nothing) then
SDB.MainTree.CurrentNode = Nodes
Nodes.Expanded = True
Set Node = SDB.MainTree.FirstChildNode(Nodes)
do while not (Node is Nothing)
if LCase(Node.Caption) = LCase(strNode) then
SDB.MainTree.RemoveNode(Node)
exit do
end If
'MsgBox node.caption
Set Node = SDB.MainTree.NextSiblingNode(Node)
loop
Set Node = Nothing
end if
Set Nodes = Nothing
Last edited by onkel_enno on Sat Sep 03, 2005 7:16 am, edited 2 times in total.
-
- Posts: 2157
- Joined: Fri Jan 14, 2005 1:45 am
- Location: Germany
- Contact: