Pick object without the pickbutton

hello
I would like to select objects, run my script and pick an object in the scene, so my selected objects are in the same Layer than picked one.
But I don't want to have to click a "pickbutton" after running my script.
Is it possible ?
Thanks.
Happy new year !!!!

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture
miauu's picture
miauu's picture

The script is ready. Just

The script is ready. Just wait few minutes to uplaod it to my blog. :)

titane357's picture

what I was looking for, was :

what I was looking for, was : "XXX = pickObject"
but I could never do such a nice script alone so quickly !!!!
you saved me long hours of work....

titane357's picture

Many thanks miauu, it's

Many thanks miauu, it's exactly what I needed ! :-)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.