# Use Mel To Control Hardware Resolution

**URL:** https://forum.highend3d.com/t/use-mel-to-control-hardware-resolution/3242
**Category:** Maya
**Tags:** mel
**Created:** [March 10, 2006, 5:30am UTC](https://forum.highend3d.com/t/use-mel-to-control-hardware-resolution/3242 "2006-03-10T05:30:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tazz](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@tazz](https://forum.highend3d.com/u/tazz)
#### Post date: [March 10, 2006, 5:30am UTC](https://forum.highend3d.com/t/use-mel-to-control-hardware-resolution/3242/1 "2006-03-10T05:30:07Z")

</div>

Hi all,

I wonder if it's possible to control a material node's texture resolution(Hardware Texture) with mel. I tried to use "setAttr", but failed. Seems i have to use mouse to active it.

Anybody can help?Thanks!

---

<div class="post-metadata">

### Author: ![rob-bateman](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@rob-bateman](https://forum.highend3d.com/u/rob-bateman)
#### Post date: [March 10, 2006, 9:20am UTC](https://forum.highend3d.com/t/use-mel-to-control-hardware-resolution/3242/2 "2006-03-10T09:20:43Z")

</div>

setAttr on the resolution atribute should do it. Make sure that the file texture actually has a resolution attribute (it wont if it's set to default resolution, so you will have to check the attribute is there, create it if needed, then set it).
