c4d.UVWTag

class c4d.UVWTag
Represents the UVW tag.
Handles the UVW coordinates for textures.

Note

When assigning a UVW tag to an object ensure the texture is set to UVW.

The instance object class of type Tuvw.

Methods Signatures

UVWTag.__init__(self, count)
type count:int
UVWTag.GetSlow(self, i) Get the UVW coordinate for a polygon.
UVWTag.SetSlow(self, i, a, b, c, d) Set the UVW coordinates of a polygon.
UVWTag.CpySlow(self, i, srctag, src) Copy a UVW coordinate.

Inheritance

Parent Class:

Methods Documentation

UVWTag.__init__(self, count)
Parameters:count (int) – The number of elements in the tag.
Return type:c4d.UVWTag
Returns:A new UVW tag.
UVWTag.GetSlow(self, i)

Get the UVW coordinate for a polygon.

for i in xrange(uvwtag.GetDataCount()):
    uvwdict = uvwtag.GetSlow(i)
    print uvwdict["a"]
    print uvwdict["b"]
    print uvwdict["c"]
    print uvwdict["d"]
Parameters:i (int) – The index of the polygon to get the coordinates for.
Raises:IndexError – If i is out of range : 0<=i<VariableTag.GetDataCount().
Return type:dict{a: Vector, b: Vector, c: Vector, d: Vector}
Returns:The UVW coordinates.
UVWTag.SetSlow(self, i, a, b, c, d)

Set the UVW coordinates of a polygon.

Parameters:
  • i (int) – The index of the polygon to set the coordinates for.
  • a (c4d.Vector) – The coordinate of the first point.
  • b (c4d.Vector) – The coordinate of the second point.
  • c (c4d.Vector) – The coordinate of the third point.
  • d (c4d.Vector) – The coordinate of the fourth point.
Raises:

IndexError – If i is out of range : 0<=i<VariableTag.GetDataCount().

UVWTag.CpySlow(self, i, srctag, src)

Copy a UVW coordinate.

Parameters:
  • i (int) – The destinate polygon index in this UVWTag.
  • srctag (c4d.UVWTag) – The UVWTag for the source polygon.
  • src (int) – The source polygon index in this UVWTag.
Raises:

IndexError – If i is out of range (0<=i<VariableTag.GetDataCount()) for self and/or src.