On 13/02/2018 at 16:24, xxxxxxxx wrote:
I've been using a script in R18 for sometime now and went to use it today in R19 and ran into an error. When I get to this command, GetParameter(c4d.MPBTYPE_DPI), it returns 0.0 which then throws up an error i my script as that measurement can't be zero.
I tried it again in R18 and it works fine. Went back to 19 and it fails to return the dpi.
Is this a known issue?
thanks,
.del
Texture = c4d.bitmaps.BaseBitmap()
width, height = Texture.GetSize()
mbp = c4d.bitmaps.MultipassBitmap.AllocWrapper(Texture)
dpi = mbp.GetParameter(c4d.MPBTYPE_DPI)
width = width/float(dpi)
height = height/float(dpi)