Classes | |
struct | TempUVHandle |
struct | TextureSize |
class | PaintBitmap |
class | PaintLayer |
class | PaintLayerMask |
class | PaintLayerFolder |
class | PaintLayerBmp |
class | PaintTexture |
class | PaintMaterial |
struct | PaintBrushData |
Namespaces | |
maxon | |
#define UV_SET_FROM_PROJECTION_CMD_ID |
Set UVW from Projection command in texture view.
void* SendPainterCommand | ( | Int32 | command, |
BaseDocument * | doc, | ||
PaintTexture * | tex, | ||
BaseContainer * | bc | ||
) |
TempUVHandle* GetActiveUVSet | ( | BaseDocument * | doc, |
Int32 | flags | ||
) |
Retrieves the document's active UV set.
[in] | doc | The document returning the active UV set. |
[in] | flags | The flags: GETACTIVEUVSET |
Updates the mesh based on the UVW result of interactive unwrapping.
void FreeActiveUVSet | ( | TempUVHandle * | handle | ) |
Frees the active UV set.
[in] | handle | The temporary handle of the UV set to be freed. |
const EdgeBaseSelect* GetUVSeams | ( | const BaseObject * | obj | ) |
Deprecated. Use GetUVSeams2(obj, true) to have the same behavior as before, but most of the time you want the "checkUVSettings" parameter to be false. Gets the UV seam edges for obj.
The edges are indexed by 4 * polygon + edge
where polygon
is the polygon index and edge
is the edge index between 0 and 3.
[in] | obj | The object of the UV set. |
const EdgeBaseSelect* GetUVSeams2 | ( | const BaseObject * | obj, |
Bool | checkUVSettings = false |
||
) |
Gets the UV seam edges for obj.
The edges are indexed by 4 * polygon + edge
where polygon
is the polygon index and edge
is the edge index between 0 and 3.
[in] | obj | The object of the UV set. |
[in] | checkUVSettings | If true and the UV seams are disabled in the UV viewport, nullptr will be return. If false, will always return the UV seams, without checking if the UV seams settings is enabled or not in the UV viewport. |
Bool CallUVCommand | ( | const Vector * | padr, |
Int32 | PointCount, | ||
const CPolygon * | polys, | ||
Int32 | lPolyCount, | ||
UVWStruct * | uvw, | ||
BaseSelect * | polyselection, | ||
BaseSelect * | pointselection, | ||
BaseObject * | op, | ||
Int32 | mode, | ||
Int32 | cmdid, | ||
const BaseContainer & | settings | ||
) |
Calls UV commands.
Example:
[in] | padr | The address of the points array. |
[in] | PointCount | The number of points in padr array. |
[in] | polys | The address of the polygons array. |
[in] | lPolyCount | The number of polygons in polys array. |
[in] | uvw | The address of the UV array. |
[in] | polyselection | The polygon selection. |
[in] | pointselection | The UV points selection. The points are indexed by 4 * polygon + point where polygon is the polygon index and point is the point index between 0 and 3. |
[in] | op | The object of the UV set. |
[in] | mode | The UV editing mode: EditorModes |
[in] | cmdid | The UV command: UVCOMMAND |
[in] | settings | The optional settings for the UV command. |
Identifies an image's file format.
[in] | texpath | The texture's file path. |
Bool BPSetupWizardWithParameters | ( | BaseDocument * | doc, |
const BaseContainer & | settings, | ||
AtomArray & | objects, | ||
AtomArray & | material | ||
) |
Runs BodyPaint 3D paint wizard.
[in] | doc | The document. |
[in] | settings | The settings for the paint wizard: AMSI |
[in] | objects | An array with the objects the paint wizard is using. |
[in] | material | An array with the materials the paint wizard is using. |
Bool CalculateTextureSize | ( | BaseDocument * | doc, |
AtomArray & | materials, | ||
TextureSize *& | sizes | ||
) |
Calculates the texture size based on the geometry and the size of the UV polygons.
[in] | doc | The document. |
[in] | materials | An array containing the materials the texture size calculation is applied to. |
[in] | sizes | An array with the texture sizes, equals the number of materials. Must be freed with DeleteMem. |
Bool GetAllStrings_AddTexture | ( | const void * | msgdata, |
const BaseContainer & | d | ||
) |
Private.
Activates/deactivates paint channels.
[in] | channel | The paint channel: CHANNEL |
[in] | multi | true for multi channel painting, false for single channel painting. |
[in] | enable | true to activate the paint channel, false to deactivate the paint channel. |
PaintTexture* PainterCreateNewTextureDialog | ( | String & | result, |
Filename & | resultdirectory, | ||
Int32 | channelid, | ||
BaseMaterial * | bmat | ||
) |
Opens the texture creation dialog for a material.
[out] | result | Filled with the texture's name (e.g. the filename). |
[out] | resultdirectory | The directory of the texture. |
[in] | channelid | The channel type: CHANNEL |
[in] | bmat | The material of the texture. |
maxon::Result<maxon::DrawportTextureInterface*> PainterGetBrush | ( | BaseDraw * | bd, |
PaintBrushData & | brushData | ||
) |