%brick.getdatablock().bricksizex%brick.getdatablock().bricksizey%brick.getdatablock().bricksizezThis is what I use.If the brick itself also has bricksize# variables, then go for those.