add custom image to a button

add custom image to a button

jayantbhatt07
Advocate Advocate
872 Views
1 Reply
Message 1 of 2

add custom image to a button

jayantbhatt07
Advocate
Advocate

I dont know Im asking in the right forum but I want to add my custom image on the button for example

 

symbolButton -image "cube.xpm" -command "polyCube";

but instead of polycube i want to apply me custom image ther can anbody help me regarding this.

 

Thanks

0 Likes
Accepted solutions (1)
873 Views
1 Reply
Reply (1)
Message 2 of 2

viru.gupta8
Enthusiast
Enthusiast
Accepted solution
You just need to copy your custom image in maya prefs folder
<your path>/maya/20xx/prefs/icons/example.png

Now you can use it normally
cmds.symbolButton(image="example.png")
0 Likes