-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from hasielhassan/main
Add support for custom icons by id in blender
- Loading branch information
Showing
2 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import unimenu | ||
import pyblish_lite | ||
import pathlib | ||
|
||
|
||
icon_path = pathlib.Path(pyblish_lite.__file__).parent / "img" / "logo-extrasmall.png" | ||
menu_node = unimenu.Node( | ||
label="pyblish lite", | ||
command="import pyblish_lite;pyblish_lite.show()", | ||
tooltip="Open Pyblish Lite", | ||
icon=str(icon_path), | ||
) | ||
menu_node.setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters