[Closed] Looking for a Script command: Reload textures on change
Hey
under Customize > Preferences > Files you can find “Reload textures on change”.
I’d like to see a toggle button, like eg snap on/off for that.
For that, I need to know the Max script code. I tried to dig myself with no luck.
Thankful for any kind of clues
I think the short answer is no, but I would suggest checking the output from the macro recorder
Shane
Hi Shane,
that was actually exactly what I did first
With no luck.
So I have a feeling that this command is hidden a bit deeper and only known by those skilled MaxScripters.
Having skimmed through the docs, I have noticed that you can reload individual bitmap textures. I would sumise that this is “kinda” the way that the core does it as well.
Are you trying to switch this feature on or off or are you trying to perform a refresh for your self??
Shane
Yo,
No, the refresh is pretty simple I guess.
I am trying to turn on/off the function.
Going all the way through Preference and all that takes time. Having a handy button would make life easier.
Its just bevause I am working on huge PSD files (160Meg or so 😈 ) that this function is causing me troubles. Otherwise its great. You just change something i PS, save and in a second its updated in 3dsmax’ viewport.
ReloadTextures is 0 / 1 value in the 3dsmax.ini file so you could set it using setIniSetting.
Alternatively you could create a macro / action in photoshop that saves out your image as a jpg and then load that into max as your texture so it’s not so taxing
Question is: will changing the INI setting be reflected directly in the 3dsmax behavior? Or will it only work the next time max is started?
Well, well. Mr PJanssen himself
Hey, this little research was meant as a surprice for you.
In matter of fact, that was my exact thought; Will this ini tweak affect Max immediately or not. I have a feeling that it doesnt in case it only changes the INI file.
Or maybe this command has a parameter that forces an immediate affect at some cases? Worth checking out its potential
Haha, I guess I check here too often…
We could have a look at this tomorrow, see if we can come up with something.
As I feared, changing the reloadTextures setting in the INI is not reflected directly in 3dsmax.
I could not find any ‘reload preferences’ command either…