Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Reload a Bitmap
  RSS 2.0 ATOM  

Reload a Bitmap
Rate this thread
 
37811
 
Permlink of this thread  
avatar
  • mkelly4ca
  • Posted: 15 December 2009 10:00 AM
  • Total Posts: 14
  • Joined: 07 October 2009 12:57 PM

I have a scripted material plugin, in which I have a bitmap.  When I edit the bitmap file outside of Max, the bitmap will automatically update in Max.  Unless it happens to be a .tif.  If it’s a .tif, it won’t update in Max at all.  I can re-select the file and it doesn’t update.  I can reload the max file, and it doesn’t update.  I have to close and reopen Max to get it to update.

I thought of adding a Reload button, but, what should that Reload button do?  I’ve tried calling FreeSceneBitmaps(), and delegate.reloadEffect().  I can’t find any other function that might reload the bitmap.

The Reload button in the standard DirectX Shader works properly.  TIF files don’t update automatically, but when I press their Reload button they are updated.  So what exactly does the Reload button do, and how do I do that from script?

Thanks,

Mike.



Replies: 0
avatar
  • IonDave
  • Posted: 15 December 2009 06:33 PM

What shows in the listener when the Reload button is pressed?



~Dave

http://www.max-realms.com - 3ds Max models, tutorials and forums

Max3-2010

Replies: 1
/img/forum/dark/default_avatar.png

Nothing.

Author: mkelly4ca

Replied: 16 December 2009 02:54 AM