thumbnail couldn't be updated



  • 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?



  • 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);



  • 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!


Log in to reply