How to make an object position follow the CV of a curve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an issue I'm getting with an expression to match CV translation. I have a NURBS curve with a few CVs. I want an expression that makes the translations of a group (called "grp") match a specific CV on the curve. cv 4 in this case.
$globalUpdate_X = control.translateX;
$globalUpdate_Y = control.translateY;
$globalUpdate_Z = control.translateZ;
float $curve_cv1[] = `xform -q -ws -t curve.cv[4]`;
grp.translateX = $curve_cv1[0];
grp.translateY = $curve_cv1[1];
grp.translateZ = $curve_cv1[2];
When I edit the expression, the group pops the curve to where I would expect. When I translate the control, expecting the expression to fire off, I get this error: // Error: line 3: No object matches name: curve.cv [4]