#include <globalimport.h>
GlobalUtils provides some helper functionality to react to global import settings.
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (GlobalUtilsInterface, MAXON_REFERENCE_STATIC, "net.maxon.exchange.interface.globalutils") | |
|
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 |
|
static |
Initializes the global export color conversion handler that is used by ConvertColorWithGlobalHandler. The color conversion will be initialized to convert from current active document render color space to the chosen export color space. In case the source document is in legacy color management, the low source color space will be sRGB non linear and the high color space sRGB linear. Colors in the node editor use the high color space and need to pass low = false when ConvertColorWithGlobalHandler is called.
[in] | doc | Optional document to read the source settings from. Active document is taken otherwise. |
|
static |
Clears the global color conversion handler.
|
static |
Converts a color from document color space to export color space. InitializeGlobalColorConversionHandler needs to be called before using this.
[in,out] | color | A reference to the color to convert. |
[in] | low | If true the low source color space will be used. The high color space otherwise. |
|
static |
Converts a color from document color space to export color space. InitializeGlobalColorConversionHandler needs to be called before using this.
[in,out] | color | A reference to the color to convert. |
[in] | low | If true the low source color space will be used. The high color space otherwise. |
|
static |
Converts a scene to the export color space defined in the preferences. The scene is not allowed to be the active scene! only scene copies should be converted to export space.
[in] | doc | The Document to convert. |
|
static |
Convert a color between the render spaces and sRGB linear. It can be used on both direction.
[in] | doc | The document to retrieve the converter. |
[in] | color | The color to convert. |
[in] | direction | The direction of the conversion. |
|
static |
|
static |
|
static |