Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Update Bitmaps in the AM

    SDK Help
    0
    7
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              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

              1 Reply Last reply Reply Quote 0
              • H
                Helper
                last edited by

                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

                1 Reply Last reply Reply Quote 0
                • H
                  Helper
                  last edited by

                  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

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post