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

    VPBUFFER_POSTEFFECT

    SDK Help
    0
    3
    281
    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 14/06/2013 at 17:02, xxxxxxxx wrote:

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

      ---------
      Hi all,

      i'm trying to add the VPBUFFER_POSTEFFECT to the multipass without luck.

      if (addPostFX)
      {
           MultipassObject *mpo = NULL;
           mpo = (MultipassObject* )BaseList2D::Alloc(Zmultipass);
           if (mpo)
           {
                //mpo->SetName("VrayBridge MP Object");
                BaseContainer *data = mpo->GetDataInstance();
                data->SetLong(MULTIPASSOBJECT_TYPE, PBUFFER_POSTEFFECT);
                rd->InsertMultipass(mpo, NULL);
                rd->Message(MSG_UPDATE);
                EventAdd();
           }
      }

      Thanks in advance
      Renato T.

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

        On 15/06/2013 at 00:57, xxxxxxxx wrote:

        Hi Renato,

        Only thing I can think of is that you're using the base container to set values. Could this be one of those instances where you need to use Get/SetParameter instead?

        Steve

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

          On 16/06/2013 at 14:13, xxxxxxxx wrote:

          where is my last post?? 🙂

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