Access parameter from inside PyObject*


please please a little hint.

i would like to lock the info.autoCook to a parameter. but cant find a way to bring in the parameters value from the OP_CHOPInputs inputs>getParInt(“par”)

static PyObject* pyGetNumSamplesHold(PyObject* self, void*) {
PY_Struct* me = (PY_Struct*)self;
PY_GetInfo info;
info.autoCook = true;
Bandpass_Filter_CHOP* inst = (Bandpass_Filter_CHOP*)me->context->getNodeInstance(info);
if (inst) {
return PyLong_FromLong(inst->getNumSamplesHold());
return nullptr;