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

    VideoPostData ExecutePixel/ExecuteLine

    SDK Help
    0
    2
    197
    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 09/07/2004 at 14:01, xxxxxxxx wrote:

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

      ---------
      Hi,
       
      I'm trying to override VideoPostData::Executpixel and VideoPostData::ExecuteLine, but for some reason the two functions are not being called at all.
       
      Is there some kind of flag I must set to make this work?
       
      My code

          
          
          
          
          class VideoPostTest:public VideoPostData  
          {  
          public:  
           static NodeData *Alloc(void) { return gNew VideoPostTest; }  
           virtual void ExecutePixel(PluginVideoPost *node, PixelPost *pp, LONG x, LONG subx, LONG suby);  
           virtual LONG Execute(PluginVideoPost *node, VideoPostStruct *vps);  
           virtual void ExecuteLine(PluginVideoPost *node, PixelPost *pp);  
          };
          
          
          
          
           
          
          
          
          
          void VideoPostTest::ExecuteLine(PluginVideoPost *node, PixelPost *pp)  
          {  
           GePrint("Why don't this function get called?");  
          }
          
          
          
          
           
          
          
          
          
          LONG VideoPostTest::Execute(PluginVideoPost *node, VideoPostStruct *vps)  
          {  
           GePrint("This Works");  
           return RAY_OK;  
          }
          
          
          
          
           
          
          
          
          
          void VideoPostTest::ExecutePixel(PluginVideoPost *node, PixelPost *pp, LONG x, LONG subx, LONG suby)  
          {  
           GePrint("Why don't this function get called?");
          
          
          
          
           
          
          
          
          
           if(pp->vd->lhit)  
           {  
            LONG vind;  
            RayObject *obj = pp->vd->ID_to_Obj(pp->vd->lhit, &vind);
          
          
          
          
           
          
          
          
          
            if(obj)  
            {  
             GePrint(LongToString(vind));  
            }  
           }
          
          
          
          
           
          
          
          
          
          }
          
          
          
      
      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/07/2004 at 16:21, xxxxxxxx wrote:

        Solved
         
        must return flags in VideoPostData::GetRenderInfo()

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