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

    turn on/off video post plugin

    SDK Help
    0
    5
    1.3k
    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 31/10/2002 at 06:51, xxxxxxxx wrote:

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

      ---------
      im looking for the on/off  switch for a videopost plugin
      so I can turn on/off an effect within my plugin.

          
          
          im looking in
      
          
          
          class PluginVideoPost : public _<_a target=_blank href= "mk:@msitstore:c:\dokumente%20und%20einstellungen\paul1\desktop\r8sdkchm2002-10-29.chm::/pages/c4d_baselist/class_baselist2d38.html"_>_BaseList2D
          {
          public_<_a target=_blank href= "mk:@msitstore:c:\dokumente%20und%20einstellungen\paul1\desktop\r8sdkchm2002-10-29.chm::/pages/c4d_videopost/class_pluginvideopos412.html title=class pluginvideopost : public baselist2d"_>_2D">PluginVideoPo_<_a target=_blank href= "mk:@msitstore:c:\dokumente%20und%20einstellungen\paul1\desktop\r8sdkchm2002-10-29.chm::/pages/c4d_videopost/class_pluginvideopos412.html#getnext0"_>_tnext0">GetNext_BaseList2D">Plugi_<_a target=_blank href= "mk:@msitstore:c:\dokumente%20und%20einstellungen\paul1\desktop\r8sdkchm2002-10-29.chm::/pages/c4d_videopost/class_pluginvideopos412.html#getpred1"_>_.html#getpred1">GetPred(void);
          };
      

          
          
          ok nothing there
      

          
          
          so I look in its the BaseContainer and find nothing there either
      
      so how may I turn a plugin on/off or is this not possible?
      
      
      ------------
      
      
      and while im at it
      
      
      i would also like to maybe delete a vp plugin from its baselist2d
      
      
      so I do 
      
      
      myvp->Remove();
      
      
      and
      
      
      pluginvideopost::Free(myvp);
      
      
      but of course I get an error saying free is not  amember of pluginvideopost
      
      
      this is clear , but ive tried  to cast it to atom and just about anything else
      
      
      there seems no way to remove it and free its memory :(
      
      
       
      
      
      heeeelp
      
      
       
      
      
       
      
      
       
      

          
          
          
      
      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 31/10/2002 at 11:09, xxxxxxxx wrote:

        Quote: Originally posted by Paul Everett on 31  October 2002
        >
        > * * *
        >
        >
        > Language(s) :   C.O.F.F.E.E  ;   
        Is this really C.O.F.F.E.E.?! The code you posted seems to be C++...
        > im looking for the on/off  switch for a videopost plugin
        You should use RDATA_POSTEFFECTS_ENABLE.
        >

        class PluginVideoPost : public [BaseList2D](mk:@MSITStore:C:\Dokumente%20und%20Einstellungen\paul1\Desktop\R8SDKCHM2002-10-29.chm::/pages/c4d_baselist/class_BaseList2D38.html)  
        \> {  
        \> public:  
        \>   [PluginVideoPost](mk:@MSITStore:C:\Dokumente%20und%20Einstellungen\paul1\Desktop\R8SDKCHM2002-10-29.chm::/pages/c4d_videopost/class_PluginVideoPos412.html%20title=class%20PluginVideoPost%20:%20public%20BaseList2D)* [GetNext](mk:@MSITStore:C:\Dokumente%20und%20Einstellungen\paul1\Desktop\R8SDKCHM2002-10-29.chm::/pages/c4d_videopost/class_PluginVideoPos412.html#getnext0)(void);  
        \>   [PluginVideoPost](mk:@MSITStore:C:\Dokumente%20und%20Einstellungen\paul1\Desktop\R8SDKCHM2002-10-29.chm::/pages/c4d_videopost/class_PluginVideoPos412.html%20title=class%20PluginVideoPost%20:%20public%20BaseList2D)* [GetPred](mk:@MSITStore:C:\Dokumente%20und%20Einstellungen\paul1\Desktop\R8SDKCHM2002-10-29.chm::/pages/c4d_videopost/class_PluginVideoPos412.html#getpred1)(void);  
        \> };
        

        Do we have the same docs? Look a bit further up on that page... 😉
        > pluginvideopost::Free(myvp);
        This is an omission in the SDK. I guess these functions could be added like this, but I haven't tried: (Otherwise it's impossible to add or remove VP's.)

            
            
              static PluginVideoPost *Alloc(LONG id)   
              {   
               PluginVideoPost* vp = static_cast<PluginVideoPost*>(AllocListNode(id));  
               return vp;  
              }
            
            
            
            
              static void Free(PluginVideoPost *&vp)  
              {  
               PluginVideoPost* t = vp;  
               FreeListNode(t);  
               vp = NULL;  
              }
        
        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 31/10/2002 at 11:31, xxxxxxxx wrote:

          thanks thats very helpfull
          ill download the newest SDK 🙂
           
          I dont see anywhere to set if the is a COFFEE or c++ related posting?
          where do I set this?

          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 31/10/2002 at 11:54, xxxxxxxx wrote:

            Quote: Originally posted by Paul Everett on 31  October 2002
            >
            > * * *
            >
            > I dont see anywhere to set if the is a COFFEE or c++ related posting?
            There are a couple of checkboxes at the top when you start a new topic.

            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 01/11/2002 at 11:30, xxxxxxxx wrote:

              I changed his original form value from C.O.F.F.E.E. to C++ to clarify things.

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