Classes |
|
struct | SubstanceShdGetBitmap |
Enumerations |
|
enum |
SUBSTANCE_MATERIAL_MODE
{
STANDARD , METALLIC , GLOSSY , AUTO , NONE } |
enum |
SUBSTANCE_IMPORT_RESULT
{
SUCCESS , DOESNOTEXIST , NOTANASSET , UNKNOWNERROR } |
enum |
SUBSTANCE_IMPORT_COPY
{
YES , NO , ASK } |
enum |
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 |
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 } |
创建 |
|
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, 材质 *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) |
首选项 |
|
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.
INTEGER |
INTEGER_2 |
Int32 Two component integer vector, two DescID .
INTEGER_3 |
Int32 Three component integer vector, three DescID 对象。
INTEGER_4 |
Int32 Four component integer vector, four DescID 对象。
BOOL |
FLOAT |
FLOAT_2 |
Float Two component float vector, two DescID 对象。
FLOAT_3 |
Float Three component float vector, three DescID 对象。
FLOAT_4 |
Float Four component float vector, four DescID 对象。
IMAGE |
Filename Image input, one DescID .
STRING |
COLOR_RGB |
向量 RGB color vector, one DescID .
COLOR_RGBA |
向量 and Float RGBA color vector, two DescID 对象。
RESOLUTION |
Int32 Substance output resolution, two DescID objects , integer, range 4 to 11, 2^n pixels (16 pixels to 2048 pixels)
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 |