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
    • Recent
    • Tags
    • Users
    • Login

    thumbnail couldn't be updated

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 233 Views
    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 Offline
      Helper
      last edited by

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

      On 14/10/2008 at 01:30, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8,9,10 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi,
      I am developing plugin for material.
      It can copy & paste Texture to other Texture.
      It seems to be working well.
      But, material's thumbnail couldn't be updated.
      Src Code is like this.
       
      BaseContainer* pContainer = pMat->GetDataInstance();
        GeData src_data = pContainer->GetData( MATERIAL_COLOR_SHADER );
        GeData target_data = pContainer->GetData( MATERIAL_REFLECTION_SHADER );
        src_data.CopyData( &target_data, NULL );
        pContainer->SetData( MATERIAL_REFLECTION_SHADER, target_data );
        pMat->Update( TRUE, TRUE );
       
      Could you give me some advice?

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

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

        On 15/10/2008 at 04:25, xxxxxxxx wrote:

        do that after Update() :

        pMat->Message(MSG_CHANGE,NULL);

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

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

          On 16/10/2008 at 19:41, xxxxxxxx wrote:

          Thank you for your help!

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