Updating Translation in Realtime via Mel?

hello everyone

I am trying to write this Mel script which place a cube at each control vertex of a 1 degree curve and then whenever i change the translation values of the cube attached, the respective curve s cv should get updated in real-time so far i been able just to place the cubes on the cvs of the curve but stuck up at the updating part :(:

I will be glad for any kind a help on this :):

Thanks
Mayur

Hmm…

The script could select all the Edit points of the Curve and do a PointOnCurve; This generates locators per point. Then you could parent contrain the cubes to these locators in the same script without maintain offset, and then hide all the locators. Now the cubes will control the curve.

You could probably do it with an expression aswell, setting it up within the script by sending it as a string

WOW that was quick :):

thanks a lot LoneWolf this what I was looking for exactly :):

Hihi don’t mention it :):