Looking for a script that can rename current layer by object selected.
Forum topic · Scripts Wanted
Rename layer.
By Andrew · 2013-03-01
Forum topic · Scripts Wanted
By Andrew · 2013-03-01
Looking for a script that can rename current layer by object selected.
Comments (7)
Comment policy
this one also should work
Yep but he ask for solution where can rename the Layer of current selected object,
if i understend correctly.
who knows :)
"rename current layer by object selected" sounds to me clear, but if it's as you say, then s'd be this one:
or maybe:
And also we need to check if...
if selection[1].layer.name != "0" do selection[1].layer.setname "New Name"
not necessary
The name of base layer is read-only and no errors come if we try to modify it.
I did not that (..no errors
I did not that (..no errors come if we try to modify it..). Thanks Panayot.
You can changege object layer name like this:
fn renameObjLayer obj newLayerName: = if (objLayer = obj.layer.name) != "0" do
(
(LayerManager.getLayerFromName objLayer).setname newLayerName
)
--example
renameObjLayer $ newLayerName:"tuxmask75"