Notifications
Clear all
[Closed] Path Constraint / Wire Parameters – Offset Syntax
Apr 29, 2013 7:51 pm
Hello,
I have a null that is path constrained and keyed at different percentages along a spline.
I want to have an another null that is always 10% further along the path than the first null. Can anyone suggest the syntax I should use in the wire parameters express window to achieve this?
I have tried a simply: percent+10, but the 2nd null remains on top of the first.
I have tired multiplication: percent*1.1 and this gives an offset, but obviously the offset grows as the percentage of the first/parent null goes from 1% to 100%. I want a consistent offset of 10 extra percentage points.
Any help would be greatly appreciated.
Bob Dyce
2 Replies
Apr 29, 2013 7:51 pm
percent controller is from 0 to 1 based, not 0-100
delete objects
with redraw off
(
b1 = point name:"first" wirecolor:orange
b2 = point name:"next" wirecolor:green
sp = converttosplineshape (circle name:"path" radius:20 wirecolor:yellow)
c1 = b1.pos.controller = Path path:sp
c2 = b2.pos.controller = Path path:sp
paramwire.connect2way c1[#percent] c2[#percent] "percent - 0.1" "percent + 0.1"
)