Hi ! I'm trying to make a script that displays the drawcalls count of a selection. It only works on editable poly for now. I'm looping through the mesh to get all mat id. global winWidth = (gw.getWinSizeX() / 2 - 20) global drawcalls = "Drawcalls: " fn GW_displayDrawCalls evt nodes= ( fn getDrawCalls dc_selObj = (…
Yeah, i think i had some other callbacks running there. I've edited the code anyway. I have a sort of lag before displaying, but i guess that's the delay for parsing the objects.
Took the code for a spin and it seems to run even if the selection really hasnt changed (ie you had Box001 selected and click on Box001 again) Maybe having a previous check so you're not running it if the selection really hasnt changed. Also didnt have much of a slowdown with about 1500 objects (simple box with some edge…