Follow me to the Inheritance diagramm.
Identifies the image’s file format.
Parameters: | texpath (str) – The path to the image. | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | int | ||||||||||||||||||||||||||||||||||||||||||||
Returns: | The image’s file format:
|
Activation/deactivation of paint channels.
Parameters: |
|
---|
Run the BodyPaint 3D paint wizard.
Parameters: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | bool |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns: | True if successfull, otherwise False. |
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 PaintTexture: 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
|