SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / Possible shortcuts to lock objects?
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 27-12-2006, 10:31 PM   #1
parka
Registered User
 
parka's Avatar
 
Join Date: Aug 2005
Posts: 102
Thanks: 0
Thanked 4 Times in 4 Posts
Default Possible shortcuts to lock objects?

I know that one can make an object a template to make it unselectable.

Is there any shortcut to it? How can I assign a simple shortcut key to lock and unlock?

Something like how Adobe Illustrator does it. For locking, it's CTRL+2. Unlocking, it's CTRL+ATL+2.
parka is offline   Reply With Quote
Old 27-12-2006, 11:29 PM   #2
enhzflep
Subscriber
 
enhzflep's Avatar
 
Join Date: Oct 2006
Location: Melbourne
Posts: 313
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, the two commands that you want are:

Template Object ====> toggle -state on -template
Untemplate Object ====> toggle -state off -template

If you go into the Hotkey editor, you can assign keys to the commands there. (Windows->Settings/Prefferences->Hotkeys...)

The commands are found in the Display section of the hotkey editor. To assign a key, select the command you'd like executed. Then enter the key you'd like to perform that action and assign. Simple as that.


Just be carefull to check what the key does before reassigning it. On my system, @ and # are free (shift 2 and shift 3)

Last edited by enhzflep : 27-12-2006 at 11:35 PM.
enhzflep is offline   Reply With Quote
Old 31-12-2006, 10:43 PM   #3
parka
Registered User
 
parka's Avatar
 
Join Date: Aug 2005
Posts: 102
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Hi, thanks.
Didn't realise that there's the Template/Untemplate in the Display menu.

The Untemplate command works only when I'm in the Hierarchy->Template mode, by clicking the square buttons.

Is there a shortcut to go into that mode, select all then Untemplate?
parka is offline   Reply With Quote
Old 31-12-2006, 11:13 PM   #4
enhzflep
Subscriber
 
enhzflep's Avatar
 
Join Date: Oct 2006
Location: Melbourne
Posts: 313
Thanks: 0
Thanked 0 Times in 0 Posts
Default

'ello! That's okay - the way I figure it, you can't use what you don't have, but you can always disregard what you don't need... As such, more is more.

I'm sorry, I don't quite follow you when you refer to the Heirachy->Template Mode, so please excuse me if this is a dumb-ass response.

I'd kinda forgotten about that, that once templated it's not nearly as quick to untemplate an object, on account of having to use the outliner or hypergraph to select the templated objects.

I just use layers to do what I think you're asking about.
When you open the channel box, you get a second window at the bottom with a radio-button to select either Display or Render. Display being the default. (use the third icon from the left at the top of the channel box if you dont have two windows in the channel box side-bar)

a)Click on the icon with the square and the yellow thing.
b)Double click on the newly created text, "layer1"
c)Call it whatever takes your fancy e.g TemplateLayer
d)Select all the objects that you'd like to be able to template/untemplate at the same time e.g the whole rig, or the model's skin
e)Hold the right mouse button over the TemplateLayer text in the layer editor and choose Add Selected Objects.
f)Try clicking on the box with the V in it (visibility) or the blank box next to it to cycle through T, R and blank (Template, Reference, nothing)


I use this particularly for image planes, since it's a nice easy way to turn on/off front/back or top/bottom or left/right reference pics. It also makes selecting joints inside a skinned model a hell of a lot easier.

In a pic:
Attached Thumbnails
Click image for larger version

Name:	layercontrol.jpg
Views:	834
Size:	20.9 KB
ID:	32044  
enhzflep is offline   Reply With Quote
Old 31-12-2006, 11:22 PM   #5
parka
Registered User
 
parka's Avatar
 
Join Date: Aug 2005
Posts: 102
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Thanks for the reply.
I've also used the method you explained eariler for hiding imageplanes.

I think there's no other one-key shortcut to unlock/untemplate all the objects.

But there's an option in the preferences that enable a popup to show items' name when the mouse hovers over a series of blocked-in-view objects.

The hierachy->Template mode shown in the pix below.
Attached Thumbnails
Click image for larger version

Name:	pix1.jpg
Views:	830
Size:	34.4 KB
ID:	32045  
parka is offline   Reply With Quote
Old 31-12-2006, 11:58 PM   #6
enhzflep
Subscriber
 
enhzflep's Avatar
 
Join Date: Oct 2006
Location: Melbourne
Posts: 313
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ah, cool. Thanks for pic.

I guess you could put together a MEL for checking the templated or locked status for all objects in the scene, before toggling them all or setting them true or false.

It's 3:30 in the morning here and I feel about as sharp as a bowling ball right now, the best I can offer is that perhaps this has been covered in a MEL/Scripting thread somewhere either on this board or another. CGSociety is pretty comprehensive at technical issues, I'd be inclined to look there for a solution myself. If not already covered, I'd be surprised if somebody there couldn't provide a more satisfactory answer.

Simon.
enhzflep is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem solving many dynamic objects in a pile? rohiniduggal Dynamics & Special Effects 3 14-01-2011 06:26 PM
Strange Problem - Unable to change attributes for multiple objects anthonysw3 Technical Issues 4 04-12-2010 10:56 PM

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.