Arbitrary / Sequence Data questions


hey guys. have couple of questions.

 

1. sequence data. read on forum sequence data not added undo/redo stack. true, or there way that? tried many different ways, including making changes inside undo group, failed.

 

2. arbitrary parameter. if there's no way add sequence data undo/redo stack have question arbitrary parameters, because don't them.

 

2.1 added arbitrary parameter (is correct way that?):

    aefx_clr_struct(def);

    pf_add_arbitrary2("data",

                      0,

                      0,

                      0,

                      pf_pui_no_ecw_ui,

                      0,

                      global_data_id,

                      0);

 

2.2 have add flags global setup inform plugin use arbitrary parameter? added code entrypointfunc:

 

    case pf_cmd_arbitrary_callback:

                err = handlearbitrary(in_data,

                                      out_data,

                                      params,

                                      output,

                                      reinterpret_cast<pf_arbparamsextra*>(extra));

                break;

but it's never called, that's why asked flags.

 

2.3 read/write arbitrary. created structure, arbitrary parameter created array of chars:

typedef struct

{

    char data[1000];

} arbdatastruct;

 

i write data arbitrary parameter this:

 

    pf_err err = pf_err_none;

    aegp_suitehandler    suites(in_data->pica_basicp);

 

    pf_handle arbh = suites.handlesuite1()->host_new_handle(sizeof(arbdatastruct));

    arbdatastruct *arbdata = reinterpret_cast<arbdatastruct*>(pf_lock_handle(arbh));

    if (!arbdata)

    {

        printf("setarbdata out of memory\n");

        err = pf_err_out_of_memory;

    }

    else strcpy(arbdata->data, "lol");

 

    pf_unlock_handle(arbh);

 

and read this:

   pf_err err = pf_err_none;

    aegp_suitehandler    suites(in_data->pica_basicp);

 

    pf_handle arbh = suites.handlesuite1()->host_new_handle(sizeof(arbdatastruct));

    arbdatastruct *arbdata = reinterpret_cast<arbdatastruct*>(pf_lock_handle(arbh));

    if (!arbdata)

    {

        printf("getarbdata out of memory\n");

        err = pf_err_out_of_memory;

    }

    pf_unlock_handle(arbh);

 

all junk memory...

 

could guys me that? in advance!

dave

hi dave.

i got arbitrary params working copy/pasting colorgrid sample.

sorry not checking code... same. (unless have done so)

 

i used arbitrary params same reason did, data undone/redone.

the 1 downside, every change arb param causes re-render.

if you're ok that, you're in clear.



More discussions in After Effects SDK


adobe

Comments

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

trim media limit reached