Notifications
Clear all

[Closed] Mouse tool gets #abort while click camera viewport

I messing around mouse tools. I meet weird problem. When active viewport is associated to camera tool returns #abort when I click it.
That happens under max 9 32, when tested with 2010 tool works fine.

Code for testing:

tool mTool
(
	on freeMove do format "freeMove : %
" mouse.pos
	
	on mousePoint clickno do 
	(
		format "Point: %
" clickno
		print (getActiveCamera())
	)
	
	on mouseAbort clickno do format "Abort: %
" clickno
	
	on mouseMove clickno do format "Moving: %
" clickno
	
	on start do print "Starting"
)

startTool mTool prompt:"Hello!"
1 Reply

I found out it happens while camera is placed at 0,0,0. It seems to be exception in mouse tool screen to scene calculations.