PDA

View Full Version : select Camera Command


bjoern
06-01-2003, 06:01 PM
knows anyone the command for

PaneMenuebars:

View --> select Camera

I can't find it in the HotkeyEditor.
And what the ScriptEditor gives me is not clear to me.

regards
bjeorn

Zappa
06-02-2003, 07:10 AM
HeY!!!
I know fr sure theres a short cut key in Maya to select camera....i forgot what it was.....so i would like to know this one too.
Hope someone can answer.

Cheers

svenip
06-02-2003, 07:36 AM
map this little script to a hotkey

string $selection = `lookThru -q`;
$camShape = `listRelatives -f $selection`;
select -r $camShape;

Zappa
06-03-2003, 03:14 AM
HeY!svenip,
Thanks for the info, however im sure there was default hotkey for select camera.....at least in version 2.5 - 3.0 or so.
Anyways, gonna make this new hotkey!!
Thanks
Cheers

bjoern
06-03-2003, 01:25 PM
i got this error:

// Error: Line 1.19: Invalid redeclaration of variable "$selection" as a different type. //

idea?

regards
bjoern

svenip
06-03-2003, 02:39 PM
Originally posted by bjoern
i got this error:

// Error: Line 1.19: Invalid redeclaration of variable "$selection" as a different type. //

idea?

regards
bjoern

it's probably because you already used the name. just rename it to something like $camSelection or whatever

CGTalk Moderation
01-15-2006, 07:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.