Is it possible to have a scripted tool that if selected handles user clicks in the 3D viewport?

View: New views
2 Messages — Rating Filter:   Alert me  

Is it possible to have a scripted tool that if selected handles user clicks in the 3D viewport?

by Daniel Scott Matthews :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Would it be possible to have a tool, like the selection tools that
contains a python script that can handle user clicks in the 3D
viewport? It could operate with a menu of scripts so that you can have
any number of user functions.

One simple script may just hide any object that you click on and save
a reference to it into a list for you to restore to a visible state
later.

e.g. select Scripted Tool menu -->HideOnClick then click, click, click
... then work on some geometry you can now see better, then right
click to restore visibility on all the objects that you had hidden. Or
Shift-Click to restore visibility on all the objects and Ctrl-Click to
just reshow the last object.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

Re: Is it possible to have a scripted tool that if selected handles user clicks in the 3D viewport?

by Timothy M. Shead :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Daniel Scott Matthews wrote:

> Would it be possible to have a tool, like the selection tools that
> contains a python script that can handle user clicks in the 3D
> viewport? It could operate with a menu of scripts so that you can have
> any number of user functions.
>
> One simple script may just hide any object that you click on and save
> a reference to it into a list for you to restore to a visible state
> later.
>
> e.g. select Scripted Tool menu -->HideOnClick then click, click, click
> ... then work on some geometry you can now see better, then right
> click to restore visibility on all the objects that you had hidden. Or
> Shift-Click to restore visibility on all the objects and Ctrl-Click to
> just reshow the last object.
Yes, scripted tools are definitely on the "todo" list for 0.9.

Cheers,
Tim

[tshead.vcf]

begin:vcard
fn:Timothy Shead
n:Shead;Timothy
org:www.k-3d.org
email;internet:tshead@...
title:Founder
x-mozilla-html:FALSE
version:2.1
end:vcard



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development