TEXTURE

Definition

TEXTURE [id]
{
  [Common flags]
}

Description

Represents a STRING entry for bitmap entries. It has an additional preview window for the selected bitmap file.
Use GenerateTexturePath() to get the filename of the bitmap:

String name = cp->GetString(PRIM_RELIEF_TEXTURE);
Filename texture;
GenerateTexturePath(doc->GetDocumentPath() + doc->GetDocumentName(), Filename(name), &texture);

Example

Further Reading

Filename
Manages file and path names.
Definition: c4d_file.h:93
VP_TEXT_WATERMARK
@ VP_TEXT_WATERMARK
Definition: vptext.h:32
String
Definition: c4d_string.h:38
PRIM_RELIEF_TEXTURE
@ PRIM_RELIEF_TEXTURE
Definition: orelief.h:9
TEXTURE
TEXTURE
Root of everything. Must not be used with AddChildren.
Definition: gfx_image.h:444
GenerateTexturePath
Bool GenerateTexturePath(const Filename &docpath, const Filename &srcname, const Filename &suggestedfolder, Filename *dstname, NetRenderService *service=nullptr, BaseThread *bt=nullptr)
BaseDocument::GetDocumentName
Filename GetDocumentName(void)
BaseDocument::GetDocumentPath
Filename GetDocumentPath(void)