c4d.modules.bodypaint.TempUVHandle

class c4d.modules.bodypaint.TempUVHandle

New in version R18.011.

Methods Signatures

TempUVHandle.GetMode(self) Retrieves the current UV editor mode.
TempUVHandle.GetPoints(self) Retrieves the read-only points array.
TempUVHandle.GetPolys(self) Retrieves the read-only polygons array.
TempUVHandle.GetPolySel(self) Retrieves the selected polygons.
TempUVHandle.GetPolyHid(self) Retrieves the hidden polygons.
TempUVHandle.GetUVPointSel(self) Retrieves the selected UV points.
TempUVHandle.GetPointCount(self) Retrieves the point count.
TempUVHandle.GetPolyCount(self) Retrieves the polygon count.
TempUVHandle.GetBaseObject(self) Retrieves the object of the UV set.
TempUVHandle.IsEditable(self)
Checks if UVs are editable or not.
TempUVHandle.GetUVW(self) Retrieves the UV list.
TempUVHandle.SetUVW(self, uvw) Applies changes of the UV set to the object.
TempUVHandle.SetUVWFromTextureView(self, uvw, ...) Applies changes of the UV set to the object.

Methods Documentation

TempUVHandle.GetMode(self)

Retrieves the current UV editor mode.

Return type:int
Returns:The UV editor mode:
Mcamera Camera mode.
Mobject Object mode.
Mtexture Texture mode.
Mtextureaxis Texture axis mode.
Mpoints Point edit mode.
Medges Edge edit mode.
Mpolygons Polygon edit mode.
Manimation Animation mode.
Mkinematic IK mode.
Mmodel Model mode.
Mpaint Paint mode.
Muvpoints UV points mode.
Muvpolygons UV polygons mode.
Mdrag Drag mode.
Mpolyedgepoint Combined poly/edge/point mode. Must only be used in ViewportSelect.
Medgepoint Combined edge/point mode. Must only be used in ViewportSelect.
Mworkplane Workplane mode.
Mdrag Drag mode.
TempUVHandle.GetPoints(self)

Retrieves the read-only points array.

Return type:list of c4d.Vector
Returns:The points.
TempUVHandle.GetPolys(self)

Retrieves the read-only polygons array.

Return type:list of c4d.CPolygon
Returns:The polygons.
TempUVHandle.GetPolySel(self)

Retrieves the selected polygons.

Return type:c4d.BaseSelect
Returns:The polygons selection.
TempUVHandle.GetPolyHid(self)

Retrieves the hidden polygons.

Return type:c4d.BaseSelect
Returns:The hidden polygons selection.
TempUVHandle.GetUVPointSel(self)

Retrieves the selected UV points.

Note

The points are indexed by 4 * polygon + point where polygon is the polygon index and point is the point index between 0 and 3.

Return type:c4d.BaseSelect
Returns:The hidden polygons selection.
TempUVHandle.GetPointCount(self)

Retrieves the point count.

Return type:int
Returns:The point count.
TempUVHandle.GetPolyCount(self)

Retrieves the polygon count.

Return type:int
Returns:The polygon count.
TempUVHandle.GetBaseObject(self)

Retrieves the object of the UV set.

Return type:c4d.BaseObject
Returns:The object of the UV set.
TempUVHandle.IsEditable(self)
Checks if UVs are editable or not.
Polygon objects have editable UVs, object generators usually not.
Return type:c4d.BaseObject
Returns:The object of the UV set.
TempUVHandle.GetUVW(self)

Retrieves the UV list.

Return type:list of dict(‘a’,’b’,’c’,’d’)
Returns:The UV list.
TempUVHandle.SetUVW(self, uvw)

Applies changes of the UV set to the object.

Parameters:uvw (list of dict('a','b','c','d')) – The UV list to set.
Return type:bool
Returns:True if successful, otherwise False.
TempUVHandle.SetUVWFromTextureView(self, uvw, ignoreHidden, ignoreUnselected, autoSelectAll, registerUndo)

Applies changes of the UV set to the object.

Parameters:
  • uvw (list of dict('a','b','c','d')) – The UV list to set.
  • ignoreHidden (bool) – If True, do not affect the UV coordinates of UV Polygons or UV Points of hidden polygons.
  • ignoreUnselected (bool) – If True, do not affect the UV coordinates of UV Polygons, or UV Points (depending on the current mode) that are unselected in the Texture View.
  • autoSelectAll (bool) – If True, automatically selects all UV Polygons, or UV Points (depending on the current mode).
  • registerUndo (bool) – If True, an undo is added for the operation.
Return type:

bool

Returns:

True if successful, otherwise False.