c4d.TextureTag¶
-
class
c4d.
TextureTag
¶ - Represents the Texture Tag.Holds the texture information associated with an object.
Methods Signatures
Magic Methods
Get Methods
Get the current material associated with this tag. |
|
Get the texture projection’s coordinate system as a matrix. |
|
Get the position of the texture project. |
|
Get the rotation of the texture project. |
|
Get the scale of the texture project. |
Set Methods
Set the material associated with this tag. |
|
Sets the texture projection’s coordinate system matrix. |
|
Sets the position of the texture projection. |
|
Sets the rotation of the texture projection. |
|
Sets the scale of the texture projection. |
Inheritance
Parent Class:
Methods Documentation
-
TextureTag.
__init__
(self)¶
-
TextureTag.
GetMaterial
(self, ignoredoc=False)¶ Get the current material associated with this tag.
- Parameters
ignoredoc (bool) –
New in version R18.020.
True to ignore the tag’s document (default), otherwise False.True by default to keep backward compatibility.Changed in version R21.204.
Changed default value to False to match C++.
- Return type
Optional[c4d.BaseMaterial]
- Returns
The material or None.
-
TextureTag.
GetMl
(self)¶ Get the texture projection’s coordinate system as a matrix.
- Return type
- Returns
The texture projection’s coordinate system.
-
TextureTag.
GetPos
(self)¶ Get the position of the texture project.
- Return type
- Returns
The texture XYZ position.
-
TextureTag.
GetRot
(self)¶ Get the rotation of the texture project.
- Return type
- Returns
The rot of the texture.
-
TextureTag.
GetScale
(self)¶ Get the scale of the texture project.
- Return type
- Returns
The scale of the texture.
-
TextureTag.
SetMaterial
(self, mat)¶ Set the material associated with this tag.
- Parameters
mat (c4d.BaseMaterial) – The material for this tag.
-
TextureTag.
SetMl
(self, m)¶ Sets the texture projection’s coordinate system matrix.
- Parameters
v (c4d.Matrix) – The texture projection’s coordinate system.
-
TextureTag.
SetPos
(self, v)¶ Sets the position of the texture projection.
- Parameters
v (c4d.Vector) – The position of the texture.
-
TextureTag.
SetRot
(self, v)¶ Sets the rotation of the texture projection.
- Parameters
v (c4d.Vector) – The rotation of the texture.
-
TextureTag.
SetScale
(self, v)¶ Sets the scale of the texture projection.
- Parameters
v (c4d.Vector) – The scale of the texture.