Blender  V3.3
Namespaces | Functions
node_util.cpp File Reference
#include "hydra/node_util.h"
#include "util/transform.h"
#include <pxr/base/gf/matrix3d.h>
#include <pxr/base/gf/matrix3f.h>
#include <pxr/base/gf/matrix4d.h>
#include <pxr/base/gf/matrix4f.h>
#include <pxr/base/gf/vec2f.h>
#include <pxr/base/gf/vec3f.h>
#include <pxr/base/vt/array.h>
#include <pxr/usd/sdf/assetPath.h>

Go to the source code of this file.

Namespaces

 HDCYCLES_NAMESPACE_OPEN_SCOPE
 

Functions

template<typename DstType >
DstType HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCycles (const VtValue &value)
 
template<>
float2 HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCycles< float2 > (const VtValue &value)
 
template<>
float3 HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCycles< float3 > (const VtValue &value)
 
template<>
ustring HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCycles< ustring > (const VtValue &value)
 
template<typename Matrix >
Transform HDCYCLES_NAMESPACE_OPEN_SCOPE::convertMatrixToCycles (const typename std::enable_if< Matrix::numRows==3 &&Matrix::numColumns==3, Matrix >::type &matrix)
 
template<typename Matrix >
Transform HDCYCLES_NAMESPACE_OPEN_SCOPE::convertMatrixToCycles (const typename std::enable_if< Matrix::numRows==4 &&Matrix::numColumns==4, Matrix >::type &matrix)
 
template<>
Transform HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCycles< Transform > (const VtValue &value)
 
template<typename DstType , typename SrcType = DstType>
array< DstType > HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCyclesArray (const VtValue &value)
 
template<>
array< float3HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCyclesArray< float3, GfVec3f > (const VtValue &value)
 
template<>
array< ustring > HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCyclesArray< ustring, void > (const VtValue &value)
 
template<typename MatrixArray >
array< TransformHDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCyclesTransformArray (const VtValue &value)
 
template<>
array< TransformHDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCyclesArray< Transform, void > (const VtValue &value)
 
template<typename SrcType >
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles (const SrcType &value)
 
template<>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< float2 > (const float2 &value)
 
template<>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< float3 > (const float3 &value)
 
template<>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< ustring > (const ustring &value)
 
GfMatrix4f HDCYCLES_NAMESPACE_OPEN_SCOPE::convertMatrixFromCycles (const Transform &matrix)
 
template<>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< Transform > (const Transform &value)
 
template<typename SrcType , typename DstType = SrcType>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCyclesArray (const array< SrcType > &value)
 
template<>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCyclesArray< float3, GfVec3f > (const array< float3 > &value)
 
template<>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCyclesArray< ustring, void > (const array< ustring > &value)
 
template<>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCyclesArray< Transform, void > (const array< Transform > &value)
 
void SetNodeValue (Node *node, const SocketType &socket, const VtValue &value)
 
VtValue GetNodeValue (const Node *node, const SocketType &socket)
 

Function Documentation

◆ GetNodeValue()

VtValue GetNodeValue ( const Node node,
const SocketType socket 
)

◆ SetNodeValue()

void SetNodeValue ( Node node,
const SocketType socket,
const VtValue &  value 
)