Пример #1
0
 static int pyLayerAnimationBase_setSpecular(pyLayerAnimationBase* self, PyObject* value, void*) {
     if (value == NULL || value == Py_None) {
         self->fThis->setSpecularCtl(NULL);
         return 0;
     }
     if (!pyController_Check(value)) {
         PyErr_SetString(PyExc_TypeError, "specularCtl should be a plController");
         return -1;
     }
     self->fThis->setSpecularCtl(((pyController*)value)->fThis);
     ((pyController*)value)->fPyOwned = false;
     return 0;
 }
static int pyMatrixControllerChannel_setController(pyMatrixControllerChannel* self, PyObject* value, void*) {
    if (value == NULL) {
        self->fThis->setController(NULL);
        return 0;
    }
    if (!pyController_Check(value)) {
        PyErr_SetString(PyExc_TypeError, "controller should be a plController");
        return -1;
    }
    self->fThis->setController(((pyController*)value)->fThis);
    ((pyController*)value)->fPyOwned = false;
    return 0;
}
Пример #3
0
static int pyCompoundController_setZ(pyCompoundController* self, PyObject* value, void*) {
    if (value == NULL || value == Py_None) {
        self->fThis->setZController(NULL);
        return 0;
    }
    if (!pyController_Check(value)) {
        PyErr_SetString(PyExc_TypeError, "Z should be a plController");
        return -1;
    }
    self->fThis->setZController(((pyController*)value)->fThis);
    ((pyController*)value)->fPyOwned = false;
    return 0;
}