ObjectBuffer R11



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 23/12/2008 at 23:51, xxxxxxxx wrote:

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

    ---------
    Hi,
    I try to create MultipassObject as ObjectBuffer in c++ sdk R11.
    I could create MultipassObject, but pass type is Motion Vector.
    How can I create ObjectBuffer?
    Src Code is like this
     
    RenderData *rdata = doc->GetActiveRenderData();
    MultipassObject* pMultiPass = (MultipassObject* )MultipassObject::Alloc( 300001048 );  
    BaseContainer* pMultiPassData = pMultiPass->GetDataInstance();
    pMultiPassData->SetLong( MULTIPASSOBJECT_OBJECTBUFFER, 10 );
    rdata->InsertMultipass( pMultiPass );
    Could you give me example?
    Best regards,



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/01/2009 at 05:36, xxxxxxxx wrote:

    You have to set first the VPBUFFER type. Here an example that inserts an object buffer for object buffer ID = 10.

    > \> Bool MenuTest::Execute(BaseDocument \*doc) \> { \>      StopAllThreads(); \> \>      RenderData \*rd = NULL; \>      rd = doc->GetActiveRenderData(); \> \>      if(rd) \>      { \>           MultipassObject \*mpo = NULL; \>           mpo = (MultipassObject\* )MultipassObject::Alloc(300001048); \>           if(mpo) \>           { \>                BaseContainer \*data = mpo->GetDataInstance(); \>                data->SetLong(MULTIPASSOBJECT_TYPE, VPBUFFER_OBJECTBUFFER); \>                data->SetLong(MULTIPASSOBJECT_OBJECTBUFFER, 10); \>                rd->InsertMultipass(mpo, NULL); \>                rd->Message(MSG_UPDATE); \>                EventAdd(); \>           } \>      } \> \>      return TRUE; \> } \>

    cheers,
    Matthias



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 05/01/2009 at 17:08, xxxxxxxx wrote:

    Thank you for your help!


Log in to reply