Nuke binary plugins 16.1.1
 
Loading...
Searching...
No Matches
DD::Image::ConstrainOpI Class Reference

Implements the constrain behaviour. More...

#include <ConstrainOpI.h>

Inheritance diagram for DD::Image::ConstrainOpI:
DD::Image::SceneOpI DD::Image::AxisSceneOp DD::Image::CameraSceneOp DD::Image::LightSceneOp

Public Member Functions

 ConstrainOpI (fdk::FrameValue referenceFrame, fdk::AxisDirection defaultLookAxis=fdk::AxisDirection::Z_PLUS)
 
 ConstrainOpI (DD::Image::Op *op, fdk::AxisDirection defaultLookAxis=fdk::AxisDirection::Z_PLUS)
 
void knobs (Knob_Callback f, Op *op)
 
int knob_changed (Knob *k, Op *op)
 
const char * input_label (char *buffer) const
 Returns the input label for the current constrain mode.
 
const char * constraintKnobName () const
 
const char * orientAxisKnobName () const
 
const char * rotateXKnobName () const
 
const char * rotateYKnobName () const
 
const char * rotateZKnobName () const
 
const char * strengthKnobName () const
 
const char * applyTranslateKnobName () const
 
const char * applyRotateKnobName () const
 
const char * applyScaleKnobName () const
 
const char * maintainOffsetFrameKnobName () const
 
const char * maintainOffsetKnobName () const
 
const char * setMaintainOffsetFrameToCurrentKnobName () const
 
ndk::ConstraintMatrixParams getConstraintParametersFromKnobs (const OutputContext *context=nullptr) const
 
fdk::TimeValueSet getNeededInputTimes (const fdk::TimeValueSet &requestedTimes) const
 Returns the times we need from inputs given the times that have been requested.
 
ndk::ConstraintMode getConstraintType () const
 Gets the constraint type from the constraint knob.
 
bool constraintMaintainOffset () const
 

Static Public Member Functions

static fdk::AxisDirection GetLookAxis (int lookAxisIndex)
 

Protected Attributes

Knob_constraintKnob
 
Knob_lookAxisKnob
 
Knob_strengthKnob
 
Knob_rotateXKnob
 
Knob_rotateYKnob
 
Knob_rotateZKnob
 
Knob_applyTranslateKnob
 
Knob_applyRotateKnob
 
Knob_applyScaleKnob
 
Knob_maintainOffsetFrameKnob
 
Knob_maintainOffsetKnob
 
Knob_setMaintainOffsetFrameToCurrentKnob
 
int _constraint
 
fdk::AxisDirection _lookAxis
 
bool _rotateX
 
bool _rotateY
 
bool _rotateZ
 
double _strength
 
bool _applyTranslate
 
bool _applyRotate
 
bool _applyScale
 
bool _maintainOffset
 
float _maintainOffsetFrame
 

Detailed Description

Implements the constrain behaviour.

Member Function Documentation

◆ getConstraintParametersFromKnobs()

ndk::ConstraintMatrixParams ConstrainOpI::getConstraintParametersFromKnobs ( const OutputContext context = nullptr) const

Returns a ConstraintMatrixParams structure populated from the knobs Does not populate xform variables as these are not obtained from the knobs.

References DD::Image::Knob::get().

◆ constraintMaintainOffset()

bool ConstrainOpI::constraintMaintainOffset ( ) const

Gets whether we should be maintaining the offset given the constraint type and whether the maintain offset knob value is True.

References DD::Image::Knob::get(), and getConstraintType().



©2026 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com