Inverse Pointoncurve?

I want to create a visual control for the uValue of a motion path.
I made a control object that is geometry constrained to the motionpath curve.
I was wondering if there was a way to connect the xyz coordinate of the control object into a pointOnCurveInfo so that it would output the parameter. Right now, when I try to connect it, its gives me

// Error: The attribute 'pointOnCurveInfo1.position' cannot be connected to 'pCube4.translate'. //

I would then connect the parameter to the uvalue.

Then again, if you have another solution to solve my problem, you<re more than welcome to share.

Thanks

by parameter, i meant position

Sure use a contraint then sue a point on curve info node to obtaim the value nearest.

However you could consider just making the trasforms default manipulator the path anims manipulator instead. (it accomplishes same thing) And irts doen by default so jsut use the show manp tool! (as for making animation would be best if the animator only ever needed to enable show manip tool)

Jooja's solution is definitely more elegant, but I've also come across the error you showed.

It seems to happen when you try and connect the attributes via the connection editor, but if you connect them using mel it works fine.

ie.

connectAttr pointOnCurveInfo1.position pCube4.translate;

Thanks Joojaa!