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 CLOSED
 
Thread Tools Search this Thread Display Modes
Old 03 March 2013   #1
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
 
Old 03 March 2013   #2
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
	$form;

showWindow $window;

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


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.
 
Old 03 March 2013   #3
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
 
Old 03 March 2013   #4
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.
 
Old 03 March 2013   #5
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.
 
Old 03 March 2013   #6
you could also try using "keyfriend" script.
http://lesterbanks.com/2012/11/keyf...eys-and-curves/

It has transport / playback controls at the bottom of a roll out.
 
Old 03 March 2013   #7
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.
 
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 11:15 AM.


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