MCPcopy Create free account
hub / github.com/MrKepzie/Natron / Sbk_EffectFunc_getFrameRate

Function Sbk_EffectFunc_getFrameRate

Engine/NatronEngine/effect_wrapper.cpp:532–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532static PyObject* Sbk_EffectFunc_getFrameRate(PyObject* self)
533{
534 ::Effect* cppSelf = 0;
535 SBK_UNUSED(cppSelf)
536 if (!Shiboken::Object::isValid(self))
537 return 0;
538 cppSelf = ((::Effect*)Shiboken::Conversions::cppPointer(SbkNatronEngineTypes[SBK_EFFECT_IDX], (SbkObject*)self));
539 PyObject* pyResult = 0;
540
541 // Call function/method
542 {
543
544 if (!PyErr_Occurred()) {
545 // getFrameRate()const
546 double cppResult = const_cast<const ::Effect*>(cppSelf)->getFrameRate();
547 pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<double>(), &cppResult);
548 }
549 }
550
551 if (PyErr_Occurred() || !pyResult) {
552 Py_XDECREF(pyResult);
553 return 0;
554 }
555 return pyResult;
556}
557
558static PyObject* Sbk_EffectFunc_getInput(PyObject* self, PyObject* pyArg)
559{

Callers

nothing calls this directly

Calls 2

isValidFunction · 0.85
getFrameRateMethod · 0.45

Tested by

no test coverage detected