Path Constraint / Wire Parameters - Offset Syntax

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 04 April 2013   #1
Path Constraint / Wire Parameters - Offset Syntax

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

Last edited by Paradyce : 04 April 2013 at 06:55 PM.
 
Old 04 April 2013   #2
percent controller is from 0 to 1 based, not 0-100
Code:
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" )
 
Old 04 April 2013   #3
Perfecto!

Perfect! thank you so much!!!
B
 
Old 04 April 2013   #4
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:35 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.