How to detach playback controls?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  03 March 2013
How to detach playback controls?

Is there anyway to detach and move the playback controls? (play, stop, next keyframe etc...) I would like to have them floating, so i can move them near my cam window. would speed things up
4 8 15 16 23 42
  03 March 2013
It is possible, but not recommended.

Here's how you get those controls into a separate window:

global string $gPlayBackForwardButton;

string $tcLayout = `control -q -p $gPlayBackForwardButton`;
string $tcFormLayout = `control -q -p $tcLayout`;

$window = `window -rtf 1 myTimeControlsWindow`;
	$form = `formLayout`;
	layout -e -p $form $tcLayout;
	$children = `layout -q -ca $form`;
	$tcLayout = $children[0];
formLayout -e
	-af $tcLayout "left" 0
	-af $tcLayout "top" 0

showWindow $window;

string $otherUI[] = `layout -q -ca $tcFormLayout`;
formLayout -e
	-af $otherUI[1] "right" 0
	-ac $otherUI[0] "right" 0 $otherUI[1]

This isn't reversible; once the controls are in the new window, you'd have to write some code to put them back. Otherwise, closing the new window deletes the playback controls until you restart Maya.

The more obvious solution, and I wonder why you aren't using it, is to simply use Hotkeys to control playback. I've never touched those controls manually since forever.
  03 March 2013
ya thought about it, but wanted to see if there was a non-permanent way first. ok ty for reply
4 8 15 16 23 42
  03 March 2013
A non-permanent solution would be to create your own time controls.

They are basically just symbolButtons with various commands attached which you can look up in Programs/Autodesk/Maya201x/scripts/others/timeSlider.mel

In fact, you could just copy that script and replace the global variables (that identify the UI buttons in the interface) with your own.

Again, this seems like a huge waste of time when you can just use hotkeys.
  03 March 2013
I use hotkeys similar to Motionbuilder, for start stop toggle and next/ last key.
Is the main one you need playback toggle on/off?
Should be easy enough to make a mini floating panel with Mel.
  03 March 2013
you could also try using "keyfriend" script.

It has transport / playback controls at the bottom of a roll out.
  03 March 2013
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

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
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 12:54 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.