View Single Post
# 5 15-12-2005 , 12:41 PM
vladimirjp's Avatar
Subscriber
Join Date: Jun 2003
Location: stuck in the 90's boston, USA
Posts: 1,871
just take the srcipt, paste it into script editor, then select the script by highlighting it, then mmb drag it onto a shelf.
to assign it as hot key
go to windows>prefs>hotkey editor

when the window pop up, scroll down to "user" tab,
then click new,
then paste the script into command. give it a name and description [optional]
then choose a hot key to assign it to.

this is what i have in my script instead of what i posted above.

global proc tglCulling()
{
if(`window -q -ex tcwin`)
{
if(`intField -q -v if1` == 0){ polyOptions -fb -bcv on; intField -e -v 1 if1; }
else{ polyOptions -bc -bcv off; intField -e -v 0 if1; }
}
else
{
window -ret -vis off tcwin; columnLayout; intField -v 0 if1;
}
}tglCulling();

Attached Thumbnails

Image dump

Last edited by vladimirjp; 15-12-2005 at 12:43 PM.