# addAttr -readable -writable -hidden

**URL:** https://forum.highend3d.com/t/addattr-readable-writable-hidden/6894
**Category:** Maya
**Tags:** mel
**Created:** [September 14, 2001, 6:04am UTC](https://forum.highend3d.com/t/addattr-readable-writable-hidden/6894 "2001-09-14T06:04:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jeffd](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/71c47a/32.png) [@jeffd](https://forum.highend3d.com/u/jeffd)
#### Post date: [September 14, 2001, 6:04am UTC](https://forum.highend3d.com/t/addattr-readable-writable-hidden/6894/1 "2001-09-14T06:04:07Z")

</div>

I am trying to figure out some of the flags for addAttr. Basically my goal is to add some attributes that are visible in the UI attr editor, but are not changable from the UI. Is this possible? I tried...

addAttr -ln new -at "float" -writable 0 -hidden 0;

...but it seems whenever I turn off writable the attribute becomes hidden.

--JeffD

---

<div class="post-metadata">

### Author: ![jschleifer](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jschleifer](https://forum.highend3d.com/u/jschleifer)
#### Post date: [September 14, 2001, 11:10am UTC](https://forum.highend3d.com/t/addattr-readable-writable-hidden/6894/2 "2001-09-14T11:10:16Z")

</div>

you can lock them if you want to see them but not change 'em..  
addAttr -ln "foo" obj;  
setAttr -l 1 obj.foo;

-jason

> [@](#):
>
> In reply to:   
> I am trying to figure out some of the flags for addAttr. Basically my goal is to add some attributes that are visible in the UI attr editor, but are not changable from the UI. Is this possible? I tried...
> 
> addAttr -ln new -at "float" -writable 0 -hidden 0;
> 
> ...but it seems whenever I turn off writable the attribute becomes hidden.
> 
> --JeffD

* * *

jason schleifer  
animator  
weta digital

---

<div class="post-metadata">

### Author: ![jeffd](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/71c47a/32.png) [@jeffd](https://forum.highend3d.com/u/jeffd)
#### Post date: [September 14, 2001, 2:10pm UTC](https://forum.highend3d.com/t/addattr-readable-writable-hidden/6894/3 "2001-09-14T14:10:57Z")

</div>

Exactly what I need. Thanks.

--JeffD
