c4d.modules.bodypaint.TempUVHandle

New in version R18.011.

Definition

class c4d.modules.bodypaint. TempUVHandle

Members

TempUVHandle. GetMode ( )

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.
Muvpolygons UV polygons.
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.
TempUVHandle. GetPoints ( )

Retrieves the read-only points array.

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

Retrieves the read-only polygons array.

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

Retrieves the selected polygons.

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

Retrieves the hidden polygons.

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

Retrieves the selected UV points. 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 ( )

Retrieves the point count.

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

Retrieves the polygon count.

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

Retrieves the object of the UV set.

Return type: c4d.BaseObject
Returns: The object of the UV set.
TempUVHandle. IsEditable ( )

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 ( )

Retrieves the UV list.

Return type: list of dict(‘a’,’b’,’c’,’d’)
Returns: The UV list.
TempUVHandle. SetUVW ( 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 ( 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 .

Table Of Contents