About
A TextureTag is used to assign a material (BaseMaterial) to a BaseObject. The class TextureTag is based on BaseTag so the typical workflows of handling tags apply, see BaseTag and VariableTag Manual.
TextureTag objects are an instance of Ttexture
.
if (textureTag == nullptr)
if (polygonSelection)
{
}
{
}
String GetName() const
Definition: c4d_baselist.h:2543
Definition: c4d_basetag.h:52
Bool SetParameter(const DescID &id, const GeData &t_data, DESCFLAGS_SET flags)
Definition: lib_description.h:355
Definition: c4d_gedata.h:83
const BaseList2D * GetLink(const BaseDocument *doc, Int32 instanceof=0) const
Definition: c4d_string.h:41
Definition: c4d_basetag.h:704
void SetMaterial(BaseMaterial *mat)
maxon::Int32 Int32
Definition: ge_sys_math.h:56
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
#define Tpolygonselection
Polygon selection - SelectionTag.
Definition: ge_prepass.h:1422
#define Xbitmap
Bitmap.
Definition: ge_prepass.h:1323
#define Ttexture
Texture - TextureTag.
Definition: ge_prepass.h:1411
#define ConstDescID(...)
Definition: lib_description.h:594
@ MATERIAL_COLOR_SHADER
Definition: mmaterial.h:294
const char * doc
Definition: pyerrors.h:226
Represents a level within a DescID.
Definition: lib_description.h:298
@ TEXTURETAG_RESTRICTION
Definition: ttexture.h:24
@ TEXTURETAG_PROJECTION
Definition: ttexture.h:10
@ TEXTURETAG_PROJECTION_UVW
Definition: ttexture.h:17
Allocation/Deallocation
TextureTag instances are created with the usual tools.
if (mat == nullptr)
if (textureTag == nullptr)
object->InsertTag(textureTag);
Definition: c4d_basematerial.h:28
static TextureTag * Alloc()
Properties
The parameters of a TextureTag can be edited with C4DAtom::SetParameter() and C4DAtom::GetParameter(). The parameter IDs of a TextureTag are defined in ttexture.h
.
Material
A TextureTag stores a reference to a BaseMaterial based material.
if (ttag == nullptr)
if (material != nullptr)
{
}
BaseMaterial * GetMaterial(Bool ignoredoc=false) const
#define ApplicationOutput(formatString,...)
Definition: debugdiagnostics.h:204
Texture Matrix
A TextureTag also stores information on how the referenced material is applied to the host BaseObject. If the projection type is not UVW mapping the texture matrix is applied:
void SetRot(const Vector &v)
maxon::Float Float
Definition: ge_sys_math.h:62
Float32 DegToRad(Float32 r)
Definition: apibasemath.h:256
@ TEXTURETAG_PROJECTION_CUBIC
Definition: ttexture.h:14
Further Reading