Page 1 of 1
change Icon of layer
Posted: Tue Nov 09, 2021 7:55 pm
by davoodice2
hello friends.
can we change Icon of layer ?
Re: change Icon of layer
Posted: Wed Nov 10, 2021 3:44 am
by synthsin75
Yes, the layer type icons are located in C:\Program Files\Moho\Resources\Images on Windows. They are named bone_type.png, group_type.png, mesh_type.png, etc..
Replacing these will change the layer icons.
Re: change Icon of layer
Posted: Wed Nov 10, 2021 8:34 am
by davoodice2
synthsin75 wrote: ↑Wed Nov 10, 2021 3:44 am
Yes, the layer type icons are located in C:\Program Files\Moho\Resources\Images on Windows. They are named bone_type.png, group_type.png, mesh_type.png, etc..
Replacing these will change the layer icons.
Thanks. I mean, I do this with a script.
Re: change Icon of layer
Posted: Wed Nov 10, 2021 5:31 pm
by synthsin75
Lua does have the os library, which can move files around. But I don't see any reason why you'd want to do that, as you'd still have to restart Moho to see the change.
Re: change Icon of layer
Posted: Wed Nov 10, 2021 5:52 pm
by davoodice2
synthsin75 wrote: ↑Wed Nov 10, 2021 5:31 pm
Lua does have the os library, which can move files around. But I don't see any reason why you'd want to do that, as you'd still have to restart Moho to see the change.
I want change color of icons for all parents of child in hierarchy. just for faster find parents by eye. I did by changing names but it's not interesting.
some thing like this

Re: change Icon of layer
Posted: Wed Nov 10, 2021 6:00 pm
by synthsin75
That doesn't look like the icon color is changed. It just looks like secondary selection. You could also color layers on the fly: MohoLayer:SetLabelColor(colID)