Difference between revisions of "Beanshell:Changing linewidth of selected layers"
Jump to navigation
Jump to search
(Script that changes line width to 5 for all selected layers) |
(Simplified code) |
||
| Line 1: | Line 1: | ||
| − | |||
{ | { | ||
width = 5; | width = 5; | ||
for (lyr : wc.layerNamePanel.selectedLayers) { | for (lyr : wc.layerNamePanel.selectedLayers) { | ||
| − | + | lyr.basicStyle.setLineWidth(width); | |
} | } | ||
wc.layerViewPanel.repaint(); | wc.layerViewPanel.repaint(); | ||
} | } | ||
Latest revision as of 05:48, 25 May 2015
{
width = 5;
for (lyr : wc.layerNamePanel.selectedLayers) {
lyr.basicStyle.setLineWidth(width);
}
wc.layerViewPanel.repaint();
}