MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / isLifetimeActivated

Method isLifetimeActivated

Engine/Node.cpp:5443–5460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5441}
5442
5443bool
5444Node::isLifetimeActivated(int *firstFrame,
5445 int *lastFrame) const
5446{
5447 KnobBoolPtr enableLifetimeKnob = _imp->enableLifeTimeKnob.lock();
5448
5449 if (!enableLifetimeKnob) {
5450 return false;
5451 }
5452 if ( !enableLifetimeKnob->getValue() ) {
5453 return false;
5454 }
5455 KnobIntPtr lifetimeKnob = _imp->lifeTimeKnob.lock();
5456 *firstFrame = lifetimeKnob->getValue(0);
5457 *lastFrame = lifetimeKnob->getValue(1);
5458
5459 return true;
5460}
5461
5462bool
5463Node::isNodeDisabled() const

Callers 3

getEffectDurationMethod · 0.80
onDisabledKnobToggledMethod · 0.80

Calls 2

lockMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected