Notifications
Clear all
[Closed] script works well in 2011 not in 2014
Apr 25, 2015 4:07 am
hi everybody
i found this script in this site it works perfectly with max 2011 but when i use it in max 2014 the second part works with a
delay i mean it render a previous viewport action.
--First part
completeredraw()
redrawViews()
db =gw.getViewportDib()
db.filename = "C:/002/" + "_db.bmp"
save db
close db
--second part
tx = bitmaptexture bitmap:db
wincrm=220.0/db.width
hincrm=250.0/db.height
bb = bitmap (db.width*wincrm) (db.height*hincrm)
ff=rendermap tx into:bb size:([db.width,db.height]*hincrm) filter:true display:on
ff.filename = "C:/002/" + "_df.bmp"
save ff
Thanks in advance
3 Replies
Apr 25, 2015 4:07 am
a year ago I found the same: rendermap render previous viewport state. Still don’t know why.
Apr 25, 2015 4:07 am
Try adding Garbage Collection at the very begining of the script:
gc()