Classes | |
struct | SubstanceShdGetBitmap |
Enumerations | |
enum class | SUBSTANCE_MATERIAL_MODE { STANDARD , METALLIC , GLOSSY , AUTO , NONE } |
enum class | SUBSTANCE_IMPORT_RESULT { SUCCESS , DOESNOTEXIST , NOTANASSET , UNKNOWNERROR } |
enum class | SUBSTANCE_IMPORT_COPY { YES , NO , ASK } |
enum class | SUBSTANCE_INPUT_TYPE { INTEGER , INTEGER_2 , INTEGER_3 , INTEGER_4 , BOOL , FLOAT , FLOAT_2 , FLOAT_3 , FLOAT_4 , IMAGE , STRING , COLOR_RGB , COLOR_RGBA , RESOLUTION } |
enum class | SUBSTANCE_OUTPUT_TYPE { DIFFUSE , BASECOLOR , OPACITY , EMISSIVE , AMBIENT , AMBIENTOCCLUSION , MASK , NORMAL , BUMP , HEIGHT , DISPLACEMENT , SPECULAR , SPECULARLEVEL , SPECULARCOLOR , GLOSSINESS , ROUGHNESS , ANISOTROPYLEVEL , ANISOTROPYANGLE , TRANSMISSIVE , REFLECTION , REFRACTION , ENVIRONMENT , IOR , SCATTERING0 , SCATTERING1 , SCATTERING2 , SCATTERING3 , METALLIC , ANY , UNKNOWN , INTERNAL_COUNT } |
Create | |
SUBSTANCE_IMPORT_RESULT | ImportSubstance (BaseDocument *const doc, const Filename &fn, SUBSTANCE_IMPORT_COPY ©File, Bool errPopup, Bool addUndo, Bool createMaterial, BaseList2D **assetPtr) |
BaseMaterial * | CreateMaterial (BaseList2D *const asset, Int32 graphIndex, SUBSTANCE_MATERIAL_MODE mode) |
BaseShader * | CreateSubstanceShader (BaseList2D *const asset) |
Bool | AssignChannelToMaterial (BaseList2D *const asset, Material *const c4dMaterial, Int32 channelId, Int32 outputUid, Bool addUndo) |
Get and Insert | |
BaseList2D * | GetFirstSubstance (BaseDocument *const doc) |
void | GetSubstances (BaseDocument *const doc, AtomArray *arr, Bool onlySelected) |
Bool | InsertLastSubstance (BaseDocument *const doc, BaseList2D *asset) |
Graphs, Inputs, Outputs | |
void * | GetSubstanceGraph (BaseList2D *const asset, void *const prevGraph, String &name) |
void * | GetSubstanceInput (BaseList2D *const asset, void *const graph, void *const prevInput, UInt32 &inputUid, Int32 &firstId, Int32 &numElements, SUBSTANCE_INPUT_TYPE &type, String &name) |
void * | GetSubstanceOutput (BaseList2D *const asset, void *const graph, void *const prevOutput, UInt32 &outputUid, SUBSTANCE_OUTPUT_TYPE &type, String &name, BaseBitmap **bmpPtr) |
Preferences | |
SUBSTANCE_MATERIAL_MODE | PrefsGetMaterialModeSetting () |
Int32 | PrefsGetPreviewSetting () |
Misc | |
Bool | MaterialUsesSubstance (BaseMaterial *const mat) |
BaseBitmap * | GetSubstanceMosaicPreview (BaseList2D *const asset, Int32 w, Int32 h) |
Private | |
void | UpdateImageInputPaths (BaseList2D *const asset, String &path) |
void | CloneReferencedSubstances (BaseDocument *const doc, BaseShader *const shd, BaseDocument *const ddoc, BaseShader *const dshd) |
void | CloneReferencedSubstancesObject (BaseDocument *const docSrc, BaseObject *const opSrc, BaseDocument *const docDst, BaseObject *const opDst) |
void | InsertSubstancePreviewScene (BaseDocument *const doc, BaseList2D *const asset) |
const BaseBitmap * | GetContentBrowserOverlay () |
STANDARD |
Create standard material.
METALLIC |
Create metallic material.
GLOSSY |
Create glossy material.
AUTO |
Use heuristic to choose one of the three above (see Cinema 4D's user manual).
NONE |
Do not create material.
SUCCESS |
Success.
DOESNOTEXIST |
File not found.
NOTANASSET |
Wrong file format.
UNKNOWNERROR |
On memory error or when invalid parameters were passed.
YES |
Automatically copy file to project directory (relative file path).
NO |
Do not copy file to project directory (absolute file path).
ASK |
Ask user.
RESOLUTION |
DIFFUSE |
BASECOLOR |
OPACITY |
EMISSIVE |
AMBIENT |
AMBIENTOCCLUSION |
MASK |
NORMAL |
BUMP |
HEIGHT |
DISPLACEMENT |
SPECULAR |
SPECULARLEVEL |
SPECULARCOLOR |
GLOSSINESS |
ROUGHNESS |
ANISOTROPYLEVEL |
ANISOTROPYANGLE |
TRANSMISSIVE |
REFLECTION |
REFRACTION |
ENVIRONMENT |
IOR |
SCATTERING0 |
SCATTERING1 |
SCATTERING2 |
SCATTERING3 |
ANY |
UNKNOWN |
INTERNAL_COUNT |