File in use!
people! I've got a problem! I use
dotNetControl dropbtn "System.Windows.Forms.Label" pos:[70,4] width:155 height:121
dropbtn.BackgroundImage = (dotNetclass "System.Drawing.image").fromfile (....001.jpg)
and everything is working ok, but when I change the file 001.jpg and try to save it, it sais : cannot save, file in use :(((
how to solve that? It is very important to know!
Comments
haha!
The wisdom can help to see the future! I see that you have a source of inspiration! Anyway, thank you!
:)
You could say.
Cheers!
bga
hahaha!
Yes, srry! I want to display textures as preview in my script! Now when I see that I cannot edit it in photoshop and then resave it, I'm sad about it! I could even change the dropbtn.BackgroundImage = .. another file after opening in photoshop, but it still gets a while till it understands that it is unused! How to free it from usage momentarily, as it is opened in photoshop? If this is not possible, wouldn't it be slow to make copies for every texture in order to make priview of them? May be I have to make automatically from the script small thumbs for all the textures in a tmp folder and use them? How do you think?
:)
I think that the smart choise is to create thumbs. Let say that you have image (panorama) 20000x2000px. This size in not good for the thumbs, obviously.
And how to create automaticaly thumbs with mxs? This is probably your next question :). Honestly I do not know
bga
I've answered! Thx!
But the question still remains! why when I open a texture in 3d max - view image inside bitmapslot, it's showing, and it is still possible to save from photoshop changes?
:)
I not know that. Maybe some programer can have answer :). Are you always try to achive something unachievable?
bga
how do you answer so quick?
do you press on f5 every 3 minutes? Or you have a script for that?
:)
Funny question. You not answered about context menu and "REC" button. Is it works?
bga
hm!
But why when I open a texture in 3d max - view image inside bitmapslot, it's showing, and it is still possible to save from photoshop changes?
Thx Barigazy!
But I want to have the image opened in 3dsmax through my script at that time !!