c4d.modules.bodypaint
¶
Follow me to the Inheritance diagramm .
c4d.modules.bodypaint.
IdentifyImage
(
texpath
)
¶
Identifies the image’s file format.
Parameters: | texpath ( str ) – The path to the image. | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | int | ||||||||||||||||||||||||||||||||||||||||||||
Returns: |
The image’s file format:
|
c4d.modules.bodypaint.
PainterActivateChannel
(
channel
,
multi
,
enable
)
¶
Activation/deactivation of paint channels.
Parameters: |
|
---|
c4d.modules.bodypaint.
BPSetupWizardWithParameters
(
doc
,
settings
,
objects
,
material
)
¶
Run the BodyPaint 3D paint wizard.
Parameters: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: |
bool |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns: |
True if successfull, otherwise False . |
c4d.modules.bodypaint.
SendPainterCommand
(
command
,
doc
,
tex
,
bc
)
¶
Sends commands to Bodypaint 3D.
Parameters: |
|
||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: |
bool |
||||||||||||||||||||||||||||
Returns: |
True if the command was successfully sent, otherwise False .
If
command
was
PAINTER_LOADTEXTURE
and the texture successfully loaded, it then returns the
import c4d from c4d.modules import bodypaint texturename = r’path/to/texture’ settings = c4d.BaseContainer() settings.SetFilename(c4d.LOADTEXTURE_FILENAME, texturename) tex = bodypaint.SendPainterCommand(c4d.PAINTER_LOADTEXTURE, doc=doc, tex=None, bc=settings) if tex is not None: print tex |
c4d.modules.bodypaint.
GetActiveUVSet
(
doc
,
flags
)
¶
New in version R18.011.
Retrieves the document’s active UV set.
Parameters: |
|
||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | |||||||||||||||||||||||
Returns: |
A temporary handle to the active UV set, or
None
if there is no active UV set. Has to be freed with
|
c4d.modules.bodypaint.
FreeActiveUVSet
(
handle
)
¶
New in version R18.011.
Frees the active UV set.
Parameters: | handle ( c4d.modules.bodypaint.TempUVHandle ) – The temporary handle of the UV set to be freed. |
---|
c4d.modules.bodypaint.
CallUVCommand
(
points
,
pointCount
,
polys
,
polyCount
,
uvw
,
polySelection
,
pointSelection
,
op
,
mode
,
cmdid
,
settings
)
¶
New in version R18.011.
Calls UV commands.
Parameters: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: |
bool |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns: |
True if successful, otherwise False . |