OK, trying to get this to work. Not sure what I'm missing.
I couldn't get it to work on the dependency node's built-in attribute,
so I decided to try first with just dynamic attributes:
createNode unknown -n node;
addAttr -ln test1 -k 1 -multi node;
addAttr -ln test2 -k 1 -multi node;
setAttr node.test2[0] 23;
setAttr node.test2[2] 42;
setAttr node.test1[1] 64;
connectAttr node.test1 node.test2;
getAttr node.test2;
// Result: 23 42 //
I was expecting the same as:
getAttr node.test1;
// Result: 64 //
So I assume I'm not understanding what you've said.
Regarding what I really want, I don't have control over the dependency node plugin that I am trying to work with. I would bet that they may be better off using an attribute of type doubleArray, instead of an array attribute of type double. so it goes.