# Mel Script For Dual Resolution Gate

**URL:** https://forum.highend3d.com/t/mel-script-for-dual-resolution-gate/1772
**Category:** Maya
**Tags:** mel
**Created:** [December 26, 2007, 3:56pm UTC](https://forum.highend3d.com/t/mel-script-for-dual-resolution-gate/1772 "2007-12-26T15:56:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![neo420](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/90ced4/32.png) [@neo420](https://forum.highend3d.com/u/neo420)
#### Post date: [December 26, 2007, 3:56pm UTC](https://forum.highend3d.com/t/mel-script-for-dual-resolution-gate/1772/1 "2007-12-26T15:56:20Z")

</div>

Hi guys,

```
     I'm doing a project work & i need a mel script for dual resolution gate like i need both HD 1080 & PAL 768 shown at the same time. Here is an example in this image
```

![](http://img186.imageshack.us/img186/415/rg1cc0.jpg)

With that red mark being a PAL 768 (768x576) standard.

---

<div class="post-metadata">

### Author: ![kurianos3d](https://forum.highend3d.com/user_avatar/forum.highend3d.com/kurianos3d/32/55947_2.png) [@kurianos3d](https://forum.highend3d.com/u/kurianos3d)
#### Post date: [December 27, 2007, 9:20am UTC](https://forum.highend3d.com/t/mel-script-for-dual-resolution-gate/1772/2 "2007-12-27T09:20:00Z")

</div>

create 2 ncurve and grp it as gate\_grp and parent with cam and use this code for  
focal length adjsutment

CODE  
 gate\_grp.sx=1 / (gate\_camShape.focalLength /35);  
 gate\_grp.sy=1 / (gate\_camShape.focalLength /35);  
 gate\_grp.sz=1 / (gate\_camShape.focalLength /35);
