#include <globalimport.h>
GlobalUtils provides some helper functionality to react to global import settings.
Static Public Member Functions | |
static MAXON_METHOD Result< void > | ConvertObjects (BaseArray< BaseObject * > &objList, const Delegate< Result< void >(BaseObject *, BaseObject *)> &customOperation=nullptr) |
static MAXON_METHOD Result< BaseMaterial * > | CreateGenericMaterial (const material::MaterialExchangeData &materialData, Id nodeSpace, BaseDocument &baseDocument) |
static MAXON_METHOD Result< void > | ConvertTextureTosRGB (ImageTextureRef &textureRef) |
static MAXON_METHOD Color | ComputeColorTemperatureRGB (Float fTemperature, Bool bNormalize, Float fReference=6500) |
static MAXON_METHOD Result< Float > | RSLightGetBaseIntensity (BaseObject *object) |
static MAXON_METHOD Result< void > | RSLightConvertToUnit (BaseObject *object, Int32 targetUnitId) |
static MAXON_METHOD Color | GetRandomColor (Int32 seed) |
Private Member Functions | |
MAXON_INTERFACE (GlobalUtilsInterface, MAXON_REFERENCE_NORMAL, "net.maxon.exchange.interface.globalutils") | |
Private Attributes | |
MAXON_INTERFACE_SINGLE_IMPLEMENTATION | |
|
private |
|
static |
Converts passed object to Redshift Objects.
[in] | objList | The list of objects to convert. |
|
static |
Creates a generic material based on basic material data and node space.
[in] | materialData | The properties of the material. |
[in] | nodeSpace | The node space ID the material is created for. |
[in] | baseDocument | The active document the import is happening. Note: The material will not be inserted into the document! |
|
static |
Convert an ImageTextureRef to an sRGB color profile.
[in,out] | textureRef | The texture to transform the color profile. |
|
static |
Convert a temperature value to a RGB color value.
[in] | fTemperature | The temperature value to convert. |
[in] | fReference | The reference temperature usually 6500 |
[in] | bNormalize | Normalize the color, so values are between 0 and 1. |
|
static |
Retrieve base intensity from the redshift light object. Base intensity is a raw (unnormalized, no scaling factor, in metric spatial system) intensity that is used for "Image" units in redshift lights.
[in] | object | redshift light object |
|
static |
Convert given redshift light intensity to the target units.
[in,out] | object | redshift light object to perform conversion on |
[in] | targetUnitId | id of the target light units (defined in orslight.h with prefix REDSHIFT_LIGHT_UNITSTYPE_) |
|
static |
Creates a random color with a random hue but consistent saturation and value (lightness).
[in] | seed | Seed for random number generator |
|
private |