On 09/02/2015 at 03:25, xxxxxxxx wrote:
Hello,
loading a new bitmap to Bodypaint is not a problem with SendPainterCommand, but if I want to set a new Texture with CreateNewTexture, I get an error message :
TypeError: argument 1 must be impossible<bad format char>, not str
The SDK points out that one should use a string:
static PaintTexture.CreateNewTexture
( path , settings )
It seem´s to be broken...?
Or did I miss something ?
Best wishes
Martin
bitPath = os.path.join(folderPath, 'Layout.tif')
print bitPath
bpSettings = c4d.BaseContainer()
bpSettings[c4d.TEXTURE_FILEFORMAT] = c4d.FILTER_TIF
bpSettings[c4d.TEXTURE_WIDTH] = 2000
bpSettings[c4d.TEXTURE_HEIGHT] = 1000
bpSettings[c4d.TEXTURE_MODE] = c4d.COLORMODE_ARGB
bodypaint.PaintTexture.CreateNewTexture(bitPath, bpSettings)