Scripting Icon Size

One Word Answer will be fine

Quick question. By default when an icon is used for an object's picture it automatically defaults to the 32px size regardless of the objects height/width.

Is it possible to script this? If not maybe some thought could be given to reading an object's size and picking the closest icon layer size?
4,127 views 2 replies
Reply #1 Top
It seems to me that there used to be a setting that allowed for chooseing the default icon size up to 128x128.It may be in Icon X,FX or even Windowblinds.
It may effect icon size contol in DX. I don't know if it does or if there's a workaround for it.
Also on drag+drop if i go in and assign a name for an icon it is an object and can be
resized at that point.
So knowing these two things I would say the size probably can be changed after the load event has ocurred.
Sorry but I'm not good at scripting to help more but I hope this might help some.

Reply #2 Top
Thanks for the thoughts Jingles. I've tried & haven't been able to access this setting via script.

The reason it is set up the default way makes sense. For the average user they can create drop containers really easy.

My work-a-round for future reference is pretty simple. I'm using a drop the clone script. So, I set up base objects for various icon sizes and read from the users settings to clone the related object. Eg. If the user has 64px as their shortcut size then it clones the base object "objShortcut64", etc.