I don't think it's possible to control "Freeze 3D View" dialog with python but at least I want to automate process of filling it with bitmap selected through explorer window.
I have some problems with c4d.modules.bodypaint.PaintLayerBmp classes.
When I feed ImportFromBaseBitmap() with bitmap object it gives me this error
"TypeError: descriptor 'ImportFromBaseBitmap' requires a 'c4d.modules.bodypaint.PaintLayerBmp' object but received a 'c4d.bitmaps.BaseBitmap'"
In SDK it's clearly written that this function requires BaseBitmap object.
I'm pretty sure I'm doing something fundamentally wrong.
import c4d from c4d import gui from c4d.modules import bodypaint from c4d import bitmaps, gui, storage #Welcome to the world of Python def main(): pl = bodypaint.PaintLayerBmp bb = storage.LoadDialog(type=c4d.FILESELECTTYPE_IMAGES, title="Please Choose a 32 Bit Image:") orig = bitmaps.BaseBitmap() orig.InitWith(bb) print orig pl.ImportFromBaseBitmap(orig, None) if __name__=='__main__': main()