Nuke binary plugins 16.0.1
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Loading...
Searching...
No Matches
DD::Image::MaterialBindingOpI Class Reference

#include <GeomOpMixIns.h>

Inheritance diagram for DD::Image::MaterialBindingOpI:
DD::Image::SourceGeomOp

Classes

class  SubEngine
 

Public Member Functions

int materialInput () const
 Returns the node input to use for the material binding.
 
const char * materialInputLabel () const
 Returns the label to be used for the material input.
 
bool testMaterialInput (Op *op) const
 
void appendMaterialGeomState (GeomOp *op, DD::Image::Hash &opHash)
 

Detailed Description

Implements the behaviour of binding a material to prims. GeomOp plugins that wish to have this behaviour should inherit from this class and call its methods in the appropriate places to use its functionality.

Member Function Documentation

◆ testMaterialInput()

bool MaterialBindingOpI::testMaterialInput ( Op op) const

Test wether op can be used as a material Call this method from the plugin's test_input method.

References DD::Image::Op::iop().

Referenced by DD::Image::SourceGeomOp::test_input().

◆ appendMaterialGeomState()

void MaterialBindingOpI::appendMaterialGeomState ( GeomOp op,
DD::Image::Hash opHash 
)

Computes the Geom State based on the material input and appends to opHash. Call this method from the plugin's appendGeomState method.

References DD::Image::ProxyContext::appendProxy(), DD::Image::GeomOp::appendToTarget(), DD::Image::Op::editState(), DD::Image::Op::input(), DD::Image::Op::nodeTopologyHash(), and DD::Image::Op::outputContext().



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