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

    Bitmap shader with mov file

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 182 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

      On 25/09/2014 at 17:32, xxxxxxxx wrote:

      Hi there,

      If I check the channel data for a certain shader within init render struct, and the bitmap inside the shader is a mov file, I´ll  get the wrong result for the actual frame.

      If I use the bitmaps.MovieLoader() and check for
      ok, image = ml.Read(doc.GetTime().GetFrame(doc.GetFps())).
      I´ll get the right image.

      But how can I update the shader for the render struct?
      Or is there any other routine to solve this?

      Thanks in advance for any help.

      Martin

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

        On 29/09/2014 at 07:03, xxxxxxxx wrote:

        is there really no other way than setting up

          
        frame=doc.GetTime().GetFrame(doc.GetFps())  
        Bitmap[c4d.BITMAPSHADER_TIMING_FROM]=frame  
        

        with all the calculations that are needed to change the frame value properly

          
        Bitmap[c4d.BITMAPSHADER_TIMING_MODE]  
        Bitmap[c4d.BITMAPSHADER_TIMING_TIMING]  
        Bitmap[c4d.BITMAPSHADER_TIMING_RANGEFROM]  
        Bitmap[c4d.BITMAPSHADER_TIMING_RANGETO]  
        Bitmap[c4d.BITMAPSHADER_TIMING_LOOPS]  
        

        anyone?

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