Jump to content

hotkey for the script


re vit
 Share

Recommended Posts

Hi people!

I've got some nice little script for selecting all objecst with the same mat :

 

for nn in selection do

(

sel_mat=nn.material

sel_obj_by_mat=#()

for i in $* do

(

if i.material == sel_mat then append sel_obj_by_mat i

)

select sel_obj_by_mat

)

 

I save it for instance as vvv.ms in scripts\startup folder.

Now I'd like to assign some hotkey but

I can't see it in command list (customize ui\all commands)

Can anybody help me?

P.S. Is it possible to extend this script by putting object's material in the 1st mat. slot?

Thanks in advance!

Edited by 1rv
Link to comment
Share on other sites

i dont know about a shortcut, but i have many of my scripts as buttons in the toolbar. if you create a toolbar, open the cript and highlight its contents then drag all the text to a toolbar. it forms a little button which you edit by right clicking it. huzzah.

 

the closest i know to running a script with a short cut is adding the 'run script' controller under the keyboard shortcuts in customise user interface, but this simply pops up the browser window asking for a script.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...