# Double3 Attributes and children attributes

**URL:** https://forum.highend3d.com/t/double3-attributes-and-children-attributes/7818
**Category:** Maya
**Tags:** mel
**Created:** [April 13, 2000, 10:06pm UTC](https://forum.highend3d.com/t/double3-attributes-and-children-attributes/7818 "2000-04-13T22:06:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mcomet](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/dfb087/32.png) [@mcomet](https://forum.highend3d.com/u/mcomet)
#### Post date: [April 13, 2000, 10:06pm UTC](https://forum.highend3d.com/t/double3-attributes-and-children-attributes/7818/1 "2000-04-13T22:06:09Z")

</div>

I am trying to make a double3 attribute, with 3 children double attributes under it, kinda like a "Translate" attr with the "translateX", "translateY", "translateZ" under it., so you can access it as a tri double, or each part individual.

According tot eh docs it should just be something like:

addAttr -dt "double3" -ln "myColor" nurbsSphere1;  
addAttr -at "double" -longName "myR" -p ("myColor") nurbsSphere1;

at which point I get an error, unable to find Parent attribute.....  
Any ideas?

I've been able to do things like:  
setAttr nurbsSphere1.MyColor -type "double3" 1.1 2.2 3.3;  
getAttr nurbsSphere1.myColor;

and I can see it in the connection editor, but I just can't seem to make child double's....please help!

-thanks  
comet

---

<div class="post-metadata">

### Author: ![mcomet](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/dfb087/32.png) [@mcomet](https://forum.highend3d.com/u/mcomet)
#### Post date: [April 13, 2000, 10:17pm UTC](https://forum.highend3d.com/t/double3-attributes-and-children-attributes/7818/2 "2000-04-13T22:17:44Z")

</div>

Nevermind I figured it out.....I should have followed the sample and done a  
-at instead -dt when you make the double3.  
The other problem I was having related to this was I was trying to do   
 setAttr -keyable 1 myColor; // and  
 setAttr -keyable 1 myR;  
BEFORE all the 3 doubles were added as children. The catch is you can't do this or actually access the double 3 until the children are added if you do ti via an -at instead of a -dt..... and you need the -at to add the children.

-comet
