Skip to main content
Known Participant
March 29, 2022
Answered

What is refconPV for arbitary data

  • March 29, 2022
  • 1 reply
  • 265 views

Hello,

In an after effects plugin we try to add ramp like user interface.This seem to require using arbitrary data creation. Then the only plugin example about that is the colorgrid in the sdk.

The documentation doesnt tell much either.

so i wonder what shoud be teh value of : def.u.arb_d.refconPV

in the colorgrid plugin it is

#define ARB_REFCON (void*)0xDEADBEEFDEADBEEF

PF_ADD_ARBITRARY2( "Color Grid",
UI_GRID_WIDTH,
UI_GRID_HEIGHT,
0,
PF_PUI_CONTROL | PF_PUI_DONT_ERASE_CONTROL,
def.u.arb_d.dephault,
COLOR_GRID_UI,
ARB_REFCON);

 

i would be really happy to get insight on what ivalue i should use their. what if i have two different arbitrary dat in the same plugin?

regards

 

This topic has been closed for replies.
Correct answer shachar carmi

it's a pointer to whatever you'd like, and that pointer is passed back to the plugin during arb calls to that param.

if you have a different handler class for each arb param, you can pass a pointer to an instance of that class. if unused, you can pass a null. deadbeef is just programer's leetspeak.

1 reply

shachar carmiCommunity ExpertCorrect answer
Community Expert
March 29, 2022

it's a pointer to whatever you'd like, and that pointer is passed back to the plugin during arb calls to that param.

if you have a different handler class for each arb param, you can pass a pointer to an instance of that class. if unused, you can pass a null. deadbeef is just programer's leetspeak.

Known Participant
March 29, 2022

i see. if i pass apointer to instance of class.. it means global variable and need to be carful i guess... but thank you for the help. it s very helpfull, as usual.