CGTalk > Software Specific Forums > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 04-29-2013, 06:51 PM   #1
Paradyce
PRO
 
Paradyce's Avatar
portfolio
Robert Dyce
3D Designer / Post Production generalist
Elara Systems
Sacramento, United States
 
Join Date: Apr 2005
Posts: 170
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-29-2013 at 06:55 PM.
 
Old 04-29-2013, 07:09 PM   #2
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,181
Send a message via ICQ to denisT
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-29-2013, 07:37 PM   #3
Paradyce
PRO
 
Paradyce's Avatar
portfolio
Robert Dyce
3D Designer / Post Production generalist
Elara Systems
Sacramento, United States
 
Join Date: Apr 2005
Posts: 170
Perfecto!

Perfect! thank you so much!!!
B
 
Old 04-29-2013, 07:37 PM   #4
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 04:46 PM.


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