Skip to main content
Participating Frequently
June 28, 2021
Question

Multiple sets of labels

  • June 28, 2021
  • 1 reply
  • 831 views

I want to use a set of labels for my work and a different set of labels for my personal files. Anybody have a idea how to solve that kind of a problem? I know that Lightroom can handle more than one set of labels. Mainly I'm dealing with photos. 

Best,

Martin

This topic has been closed for replies.

1 reply

Brainiac
June 28, 2021

Label metadata is a text field, so you can store any label you want. You would have to assign a different set of colors to particular text and manually (or with a script) swap them out. Labels not in the current set are shown as white in Bridge.

Martin LyAuthor
Participating Frequently
June 28, 2021

Thank you for your reply!

Any idea how to script such process? Sounds quite unconvenient to manually rename the labels every time I switch from work to personal.

Brainiac
June 28, 2021

Here is a sample script to choose between two sets of labels. I don't have time to complete things like adding new sets but that could be done with five text entry fields and an Add button.

Adobe has info about scripting Bridge on their website https://console.adobe.io/servicesandapis


#target bridge
if(BridgeTalk.appName == 'bridge'){
//create menu
var labelSetsCmd = MenuElement.create('command', 'Label Sets Demo...', 'at the end of Tools'); //create new menu command
}

labelSetsCmd.onSelect = function(){
labelSets();
}

function labelSets(){
try{
app.preferences.mylabels = 'Set 1-1,Set 1-2,Set 1-3,Set 1-4,Set 1-5|Set 2-1,Set 2-2,Set 2-3,Set 2-4,Set 2-5';
var Sets = app.preferences.mylabels.split('|');
var currentSelection = 0;
var currentSet = 0;
var lPalette = new Window('palette', 'Label Sets Demo', undefined, {closeButton:true});
lPalette.preferredSize = [200, 160];
lPalette.frameLocation = [100, 100];
var lpnl = lPalette.add('panel', undefined, '');
lpnl.dropdown = lpnl.add('dropdownlist', undefined, '');
for(var i = 0; i < Sets.length; i++){
try{
lpnl.dropdown.add('item', 'Set ' + (i + 1));
}
catch(e){
alert(e + ' ' + e.line);
}
}

lpnl.lBtn = lpnl.add('button', [15, 25, 130, 45], 'Apply');
lpnl.lBtn2 = lpnl.add('button', [15, 70, 130, 90], 'Cancel');
lPalette.show();

lpnl.lBtn.onClick = function(){
currentSelection = lpnl.dropdown.selection.index;
currentSet = Sets[currentSelection].split(',');
app.preferences.Label1 = currentSet[0];
app.preferences.Label2 = currentSet[1];
app.preferences.Label3 = currentSet[2];
app.preferences.Label4 = currentSet[3];
app.preferences.Label5 = currentSet[4];
}
lpnl.lBtn2.onClick = function(){
lPalette.close();
}
}
catch(e){
}
}