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 Tools Search this Thread Display Modes
  04 April 2013
Path Constraint / Wire Parameters - Offset Syntax


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.
  04 April 2013
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"
  04 April 2013

Perfect! thank you so much!!!
  04 April 2013
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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
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
Society of Digital Artists

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

All times are GMT. The time now is 06:18 AM.

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