[Closed] Macroscript Icons
So I have created my Icon images, and dumped them into “scripts/Q3ME” – which is where I am running my script from.
My icon files are q3me_24i.bmp (24×24, 32 bit) and q3me_16i.bmp (16×15, 32 bit).
I tried multiple configurations for my macroscript to get it to load these icons but it just does not seem to be working. (Yes, I did restart 3ds max inbetween tests.)
So what exactly do I need to do to get my macroscript button to properly display the icon?
Here are some version I have tried so far:
macroScript Q3_Map_Export
category:"Q3 Map Export by AshuraDX"
buttonText:"Q3ME"
icon:"q3me"
(
fileIn "Q3ME/Q3ME_Beta_0.5.ms"
)
macroScript Q3_Map_Export
category:"Q3 Map Export by AshuraDX"
buttonText:"Q3ME"
icon:#("q3me",1)
(
fileIn "Q3ME/Q3ME_Beta_0.5.ms"
)
macroScript Q3_Map_Export
category:"Q3 Map Export by AshuraDX"
buttonText:"Q3ME"
icon:#((getDir #scripts as string + "\\q3me\\q3me"),1)
(
fileIn "Q3ME/Q3ME_Beta_0.5.ms"
)
I am left clueless about what I am doing wrong and I’d be happy about any pointers.
While that works, that will break compatibility with versions of 3ds max that are older than max 9, wouldn’t it?
And from the mxs help I figured thast that would not be the only way of getting this to work.
if you put your images in…
for light UI
C:\Program Files\Autodesk\3ds Max 2017\UI_ln\Icons\
and for dark
C:\Program Files\Autodesk\3ds Max 2017\UI_ln\IconsDark\
name them
IMAGE_NAMEa.bmp – for your Alpha
IMAGE_NAMEi.bmp – for your image
macroScript NAME
category:"YOUR_CATAGORY"
toolTip:"YOUR_TOOL_TIP"
buttonText:"BUTTON_NAME"
icon:#("IMAGE_NAME",2)
(
some code
)
I tried multiple configurations for my macroscript to get it to load these icons but it just does not seem to be working. (Yes, I did restart 3ds max inbetween tests.)
So what exactly do I need to do to get my macroscript button to properly display the icon?
the script.
macroscript TestMac
category:“MyTest”
buttonText:“TestMac”
toolTip:“ToolTip”
icon:#(“Test”, 1)
(
…
)
My icon files in #usericons,and UI_ln\Icons ,it doesn’t work.what should i do?
You don’t have to, simply use colorman.reInitIcons()
So you have Test_16i.bmp in #usericons and it doesn’t work?