
If set to true, problems will be communicated to the user with a message requester. Note: When set to SUBSTANCE_IMPORT_COPY::ASK, the function obviously has to be called in a context, where user interaction is allowed. If set to SUBSTANCE_IMPORT_COPY::ASK, user's choice will be returned. Determines if Substance Asset files are copied into the project folder (and therefore referenced with relative path). The copy file flag: SUBSTANCE_IMPORT_COPY. Imports a Substance Asset file (.sbsar) into doc. InsertSubstancePreviewScene ( BaseDocument *const doc, BaseList2D *const asset)įunction Documentation ◆ ImportSubstance() UpdateImageInputPaths ( BaseList2D *const asset, String &path)ĬloneReferencedSubstances ( BaseDocument *const doc, BaseShader *const shd, BaseDocument *const ddoc, BaseShader *const dshd)ĬloneReferencedSubstancesObject ( BaseDocument *const docSrc, BaseObject *const opSrc, BaseDocument *const docDst, BaseObject *const opDst) GetSubstanceMosaicPreview ( BaseList2D *const asset, Int32 w, Int32 h) MaterialUsesSubstance ( BaseMaterial *const mat) GetSubstanceOutput ( BaseList2D *const asset, void *const graph, void *const prevOutput, UInt32 &outputUid, SUBSTANCE_OUTPUT_TYPE & type, String & name, BaseBitmap **bmpPtr)


GetSubstanceInput ( BaseList2D *const asset, void *const graph, void *const prevInput, UInt32 &inputUid, Int32 &firstId, Int32 &numElements, SUBSTANCE_INPUT_TYPE & type, String & name) GetSubstanceGraph ( BaseList2D *const asset, void *const prevGraph, String & name) InsertLastSubstance ( BaseDocument *const doc, BaseList2D *asset) GetSubstances ( BaseDocument *const doc, AtomArray *arr, Bool onlySelected) GetFirstSubstance ( BaseDocument *const doc) ImportSubstance ( BaseDocument *const doc, const Filename &fn, SUBSTANCE_IMPORT_COPY ©File, Bool errPopup, Bool addUndo, Bool createMaterial, BaseList2D **assetPtr)ĬreateMaterial ( BaseList2D *const asset, Int32 graphIndex, SUBSTANCE_MATERIAL_MODE mode)ĬreateSubstanceShader ( BaseList2D *const asset)ĪssignChannelToMaterial ( BaseList2D *const asset, Material *const c4dMaterial, Int32 channelId, Int32 outputUid, Bool addUndo)

SUBSTANCESHADER_ASSET is a link to a Substance asset.The Substance shader has two parameters, SUBSTANCESHADER_ASSET and SUBSTANCESHADER_CHANNEL. The IDs for use with SetParameter() can be obtained via GetSubstanceInput().Ĭhapter Substance shader and its parameters: See also SUBSTANCE_INPUT_TYPE Warning Under no circumstances the BaseContainer of a Substance assets should be accessed directly. This basically works the same as with every other NodeData based entity in Cinema 4D, via SetParameter(). Void * GetSubstanceGraph(BaseList2D *const asset, void *const prevGraph, String &name)
