hello friends.
can we change Icon of layer ?
change Icon of layer
Moderators: Víctor Paredes, Belgarath, slowtiger
- davoodice2
- Posts: 381
- Joined: Tue Jun 15, 2021 1:14 pm
change Icon of layer
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
- synthsin75
- Posts: 9975
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: change Icon of layer
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.
Replacing these will change the layer icons.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
- davoodice2
- Posts: 381
- Joined: Tue Jun 15, 2021 1:14 pm
Re: change Icon of layer
Thanks. I mean, I do this with a script.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.
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
- synthsin75
- Posts: 9975
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: change Icon of layer
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.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
- davoodice2
- Posts: 381
- Joined: Tue Jun 15, 2021 1:14 pm
Re: change Icon of layer
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.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.
some thing like this
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
- synthsin75
- Posts: 9975
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: change Icon of layer
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)
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/