Notifications
Clear all

[Closed] Box2 of selected object screenspace?

Hi there, I’m wondering if there is an easy way to get a box2 value of the screenspace that the currently selected object is taking up? Would appreciate any help, thanks.

CML

1 Reply

Hey, for now I have solved it like this:

 vertnum = meshop.getnumverts $ 

gw.setTransform(Matrix3 1)

xarr = #()

yarr = #()

for i = 1 to vertnum do

(

transpos = gw.wTranspoint (meshop.getVert $ i)

append xarr transpos.x ; append yarr transpos.y

)

thebox = box2 [amin xarr,amin yarr] [amax xarr,amax yarr]


Please share if there is a more direct way, thanks
CML