# Floating Window

**URL:** https://forum.highend3d.com/t/floating-window/3633
**Category:** Maya
**Tags:** mel
**Created:** [August 29, 2005, 12:39am UTC](https://forum.highend3d.com/t/floating-window/3633 "2005-08-29T00:39:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![abigbeast](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@abigbeast](https://forum.highend3d.com/u/abigbeast)
#### Post date: [August 29, 2005, 12:39am UTC](https://forum.highend3d.com/t/floating-window/3633/1 "2005-08-29T00:39:45Z")

</div>

Hey all, I'm looking to create a simple script that will open a floating window inside Maya, and to have that window display a certain camera in my scene. Can anyone help on this?

I'm basically looking to create a separate window with a camera that will always be perpendicular to some facial controls I setup to a character I will be animating.

---

<div class="post-metadata">

### Author: ![abigbeast](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@abigbeast](https://forum.highend3d.com/u/abigbeast)
#### Post date: [August 29, 2005, 12:50am UTC](https://forum.highend3d.com/t/floating-window/3633/2 "2005-08-29T00:50:35Z")

</div>

ha, or maybe I could look for one more sec and see that you can tear off a window...

---

<div class="post-metadata">

### Author: ![tjgalda](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/ecd19e/32.png) [@tjgalda](https://forum.highend3d.com/u/tjgalda)
#### Post date: [August 29, 2005, 9:30pm UTC](https://forum.highend3d.com/t/floating-window/3633/3 "2005-08-29T21:30:39Z")

</div>

No problem, here you go (just swap out your camera name as appropriate)

string $window = `window -widthHeight 150 75 -title "TJ's Floating Window" tj\_window`;   
paneLayout;   
modelPanel -cam "camera";   
showWindow $window;

////////////

And I'll go you one more. Map this to a hot key to toggle the window size down to nothing or back up to whatever size you want. I have this set to my "d" key. Sweet!

int $tj\_win\_vis = (`window -q -h tj\_window`);  
if ($tj\_win\_vis \> 50){  
 window -e -wh 1 1 tj\_window;  
 }  
else if ($tj\_win\_vis \< 50){   
 window -e -wh 1200 900 tj\_window;  
 }

![](http://www.highend3d.com/boards/style_emoticons/<#EMO_DIR#>/cool.gif)

QUOTE(abigbeast @ 08/28/05, 04:39 PM)  
Hey all, I'm looking to create a simple script that will open a floating window inside Maya, and to have that window display a certain camera in my scene.&nbsp; Can anyone help on this?

I'm basically looking to create a separate window with a camera that will always be perpendicular to some facial controls I setup to a character I will be animating.  
[snapback]213582[/snapback]

---

<div class="post-metadata">

### Author: ![jslave](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/a3d4f5/32.png) [@jslave](https://forum.highend3d.com/u/jslave)
#### Post date: [September 8, 2005, 3:17am UTC](https://forum.highend3d.com/t/floating-window/3633/4 "2005-09-08T03:17:58Z")

</div>

This is the answer to my request for building an interface for character control !!!

floating window focusing on a set of curves and planes that have set driven keys on them

I was just looking in the wrong section...

Thank you ![](http://www.highend3d.com/boards/style_emoticons/<#EMO_DIR#>/biggrin.gif)

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [September 8, 2005, 8:51am UTC](https://forum.highend3d.com/t/floating-window/3633/5 "2005-09-08T08:51:32Z")

</div>

dear god you have mapped your d key...

If you ever wonder why repositioning the pivot is so hard for you its because youve actualy mepped the only key thet makes it a breeze to do since the way insert works is MUCH slower, in terms of usabilitu besides d is next to the snaps sia ll you need is d and v downa at the same time an milldclik and youve se the pivots location to vertex under pointter)
