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

    GetDirty and GetHDirty for animated shaders

    SDK Help
    0
    1
    294
    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

      On 16/11/2017 at 02:42, xxxxxxxx wrote:

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

      ---------
      Hello.

      I understand that you call GetDirty on an object in case you want to check if this object has been changed (Matrix, Data, Cache, e.t.c). But what does GetHDirty do ?

      I have an Xbitmap shader that renders animated textures (tex_001, tex_002, tex_003, e.t.c.)
      I have set this sequence in Animation tab of Shader (via Movie Start Frame and Movie End Frame).

      Right now, I have added a checkbox (Animated Shaders) in my MaterialData plugin that once enabled, 
      I retransfer the whole material in the render engine every time the frame has been changed in the scene.
      Can I know specifically which shader needs to be retransfered using GetDirty or GetHDirty ?

      Thank you for your time.

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