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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
artrender.info's picture

haha!

The wisdom can help to see the future! I see that you have a source of inspiration! Anyway, thank you!

barigazy's picture

:)

You could say.
Cheers!

bga

artrender.info's picture

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?

barigazy's picture

:)

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

artrender.info's picture

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?

barigazy's picture

:)

I not know that. Maybe some programer can have answer :). Are you always try to achive something unachievable?

bga

artrender.info's picture

how do you answer so quick?

do you press on f5 every 3 minutes? Or you have a script for that?

barigazy's picture

:)

Funny question. You not answered about context menu and "REC" button. Is it works?

bga

artrender.info's picture

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?

artrender.info's picture

Thx Barigazy!

But I want to have the image opened in 3dsmax through my script at that time !!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.