Update Bitmaps in the AM

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/12/2002 at 05:21, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.012 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hello
I 've got a nice preview bitmap in my object now.
It is implemented as shown in the "Bitmap for PuginObjects" Thread
But i don't know how to update it :-(
 
Michael

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 09/12/2002 at 09:41, xxxxxxxx wrote:

In GetDParameter() you should increment the 'dirty' variable of the BitmapButtonStruct everytime the bitmap needs to be updated.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 17/02/2003 at 10:51, xxxxxxxx wrote:

Is it that simple? It doesn´t work for me. I am incrementing it all the time (dirty++) so it should update all the time shouldn´t it?
Thanks
Samir

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 17/02/2003 at 14:26, xxxxxxxx wrote:

already got it.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 25/02/2005 at 20:04, xxxxxxxx wrote:

Samir, I seem to be having a problem incrementing 'dirty'.
Can you possibly shed some light on how you got it working?

Thanks,

Chris

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/02/2005 at 07:28, xxxxxxxx wrote:

Here is a codesnippet:

Bool TreeGenData::GetDParameter(GeListNode* node, const DescID& id, GeData& t_data, LONG& flags)  
{   
     switch(id[0].id)   
     {   
          case TREEGEN_BEND_NOISE:     
               {     
                      
                    BitmapButtonStruct bbs(static_cast<PluginObject*>(node), id, bn_dirty);      
                      
                    t_data = GeData(CUSTOMDATATYPE_BITMAPBUTTON,bbs);      
                    flags |= DESCFLAGS_PARAM_GET;      
                    bn_dirty=0;  
                    break;  
               }  
  
                    case TREEGEN_BENDNOISETYPE:  
                    case TREEGEN_BENDNOISESPEED:  
                    case TREEGEN_BENDNOISEANIM:  
                    case TREEGEN_BENDNOISE_SCALE:  
                    case TREEGEN_BENDNOISE_WIND:  
                         bn_dirty++;  
                    break;  
                      
     }      
     return ObjectData::GetDParameter(node, id, t_data, flags);  
}

Hope that helps
Katachi

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/02/2005 at 08:18, xxxxxxxx wrote:

Thanks Samir, that is pretty much identical to what I've been trying, except I have only been incrementing it in response to a combobox ID.

I tried with other control IDs, and everything seems to work except the combobox.

I even tried incrementing 'dirty' in 'default:' and it just wont respond to the combobox.

Any ideas?

Thanks,

-Chris