Attrfieldslider - How To Retrieve Attribute Name With Complete Dag Path?

Hi,

I have setup a script that generates some attrFieldSliderGrp sliders.

the following command gives me the attached attribute name: attrFieldSliderGrp -q -at "slider1";
The result i.e. is "sphere1" which is correct.

Is there any way to retrieve the complete DAG path this slider? So the result would be i.e.: "cone1|cube1|sphere1".

Thanks a lot.
MEL

Ok please note maya would have given you the long name if it would have seen any possibility for naming collision. wich means sphere1 is a unique name.

So then theres no problem here:

ls -long sphere1

in your example this would probably work, didnt actualy test im not in formt of a computer right now.

ls("-long",attrFieldSliderGrp -q -at "slider1")

Thanks for your answer Joojaa,

The problem occurs when I have got multiple objects with the same name in the scene. attrFieldSliderGrp -q -at "object") does not return the short name. Using "ls -long attrFieldSliderGrp -q -at "slider1"" Maya returns 2 (or more) Values .

Yes, now taht i test this, your right it is buggy, it does never returns the long name. (ajnd cannot be forced either)

TRy to sotore the original connection in anannotation then.

Tough you may guess which ine it is based on the value in the floatfield abnd all similliary named nodes... TOugh it too may fail