Navigating Constraints

Hi,

I have a locator which is constrained to a camera. Starting from the locators tranform, how do I check if the locator is constrained to another object, and, if so, to which object it is constrained to?

Can this only be archieved through navigating the incoming connections on the locators transform and check if the source of that connection is a constraint, and then check what inputs the data into the constraint?

Or is there a special command like $camera = getConstraintTarget("locator1"); avaliable?

Thanks in advance,

Daniel

maybe via listConnections ?

for if the selected object is a "controller":
CODE
stringArrayRemoveDuplicates(listConnections -source 1 -destination 0 -type "constraint")

or the selection is conntrolled by a constraint:CODE
stringArrayRemoveDuplicates(listConnections -source 0 -destination 1 -type "constraint")

listConnections spits out the constraint for every attribute. Thats why i put the stringArrayRemoveDuplicates around.
And of course you can put your object into the call as well.. selection was just for testing.

Ok, thanks. That's already a lot better than grabbing a .translateX and a .target[0].targetTranslate to get the target. I'll change that.

Des isch doch koi Sach.