CGTalk > Software > 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 09-30-2004, 11:33 AM   #1
djlane
Frequenter
Animator
 
Join Date: Jun 2002
Posts: 235
Script controller question

Hello,

I`ve been trying to write a position script that makes an object (Dummy01) follow another object (Dummy02) based on the value of a custom attribute spinner value. For example:

When the CA spinner value == 100 then Dummy01 follows Dummy02

When the CA spinner value == 0 then Dummy01 remains planted in space where Dummy02 left it. leaving Dummy02 to travel around the scene .

A further twist to the behaviour I wanted is, as the CA spinner value increases from zero then Dummy01 not only starts to follow Dummy02 again but is catching up. so at spinner value 100 Dummy01 is fully locked too and following Dummy02`s position again.
I've tried to do this with constraints but its not quite right, I suppose the behaviour I want is like the Link constraint but more dynamic.

Some of the problems I am facing (Apart from my own stupidity) is a position script cant seem to make reference to its own position. If I could get the position script to capture its own position when the spinner reach Zero and hold it until the spinner value increased I reckon I would be half way there.

If anybody has any suggestions or tips I would be very greatfull.

Thanks for reading

Dan
__________________
____________
Dan Lane
Animator / Benign Lurker
Out of my depth.
 
Old 09-30-2004, 11:37 AM   #2
gavinb
me me me...
portfolio
Gavin Beard
Plymouth, United Kingdom
 
Join Date: Jul 2004
Posts: 443
Send a message via MSN to gavinb
this is similar topic covered in the next video i'm working on, i have some source i can send when i'm at home if you like?
__________________
Blog: My blog My site: Binary Pear
 
Old 09-30-2004, 11:58 AM   #3
djlane
Frequenter
Animator
 
Join Date: Jun 2002
Posts: 235
That would be fantastic, I would like that very much.

Thanks



Dan
__________________
____________
Dan Lane
Animator / Benign Lurker
Out of my depth.
 
Old 01-19-2006, 10:00 AM   #4
CGTalk Moderation
Expert
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,478
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 10:32 PM.


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