Notifications
Clear all
[Closed] how to get "region of viewport" input from user
Oct 11, 2010 7:33 pm
I need to get an input for “region of viewport” input from user.
Something like region selection.
User uses rectangle to define region and I need to get box2 value of that region.
What would be the most efficient way?
1 Reply
Oct 11, 2010 7:33 pm
using a scripted mouse tool maybe for example :
(
global pA
global pB
tool boxDrag
(
on mousepoint clickNumber do
(
if clickNumber == 1 then
pA = viewpoint
else
#stop
)
on mousemove clickNumber do(
pB = viewpoint
)
)
starttool boxDrag
select (boxpicknode (box2 pA pB))
)
cheers!