I need to come up with a rig that is somewhat like a record player needle in a record groove but much more complex.
I've attached a video to show a simple description what I need to do. The video is keyframe animated by hand but it gets the point across.
I have a red spline on a disk(B). The disk turns like a record player but at about 1 revolution per 3 seconds. So, it's really slow. I need for the vertical object(A) to follow the red spline in, much like a needle on a record player, however, the red spline shape is not a nice concentric track like a record groove. In fact, in reality, it could get quite crazy and spaghetti like. See the blue(C) line? Let’s call that the ‘y’ axis.
I need to find a way to have (A) follow the red spline. But, (A) can only move in the y-axis as if it were retained by the slot in (D). So what I need to do is find out what the y-axis coordinate of the red line is (we always know the x-axis as it never changes) so I can send that to the y-axis of (A). So I guess what is happening is (A)’s y-axis is driven by the y-axis of the intersection of the red spline and (C).
I want to be able to animate the disk(B), forwards and backwards, and see (A) move in and out while staying on top of the red spline.
Rob Holmes
------------------------------------------------------------------------------------------------------------------------------------------Steve,
Thanks for that. The long thread with James a few years back was indeed very helpful. I got it sort of working using that info. The lingering issue is that after one revolution when the red spline comes back around, the post snaps back to the beginning of it because 'PostDummy001' has not moved. I need to have it follow the post in as it moves towards the center.
I tried to solve it by creating a point at the post and linking the post to it. I then created another point and linked the PostDummy to it. That broke the system. I was going to link the points together so the PostDummyPoint would follow the PostPoint. So, I tried to write a script to have the PostDummy follow the Post with a small offset. I don't know MaxScript well enough to get the syntax correct. I can look at written code and interpret what's going on but do not currently have the knowledge to write it.
If I manually move the PostDummy in behind the Post as things are getting closer to the center, then it all seems to work. So, how can I set it up to have the PostDummy follow the post?
I've attached my file. [I tried everything to get the file, both .zip and .max to attach and kept getting the error: "The contents of the attachment doesn't match its file type."] So, here is a link to it. Let me know if it's not accessible. I tired to open it up to everyone.
https://nvision4d.box.com/s/4e8jebn4m2vq2bf1ahcw
Rob Holmes
------------------------------------------------------------------------------------------------------------------------------------------No problem Steve. Let me try to upload it again here. Maybe the maintenance last night did something funny.
Nope, can't attach. I wonder why. I've zipped it.
It continues to say "The contents fo the attachement doesn't match its file type."
Odd..
Ok, let me see how I can get the file to be available. I'll be back.
Rob Holmes
------------------------------------------------------------------------------------------------------------------------------------------Steve,
Since you are the only one helping me here I just PM'd you a link on my personal FTP site. Let me know if you get it downloaded.
Thanks
Rob Holmes
------------------------------------------------------------------------------------------------------------------------------------------I have not made an archive but could. However, there are no assets with the sample file.
I'm trying to upload using IE instead of Firefox. Let's we what happens.
Rob Holmes
------------------------------------------------------------------------------------------------------------------------------------------Rob Holmes
------------------------------------------------------------------------------------------------------------------------------------------Firefox 30.0 here and it fails to upload. IE 9 uploads perfectly. Haven't tried Chrome. I'll keep an eye on it.
Glad you got the file. No hurry. I appreciate your eye though....
Rob Holmes
------------------------------------------------------------------------------------------------------------------------------------------Right you are. What I did was manually keyframe and move the post helper in towards the center, just closely following the post as it moved it. That works ok but it's not automatic. I still have to keyframe that. I could not find a way to link the helper to the post so that as the post is moving in, it dragged the helper in behind it.
A problem would occur though in the real world if the lines got too close toghther causing the helper to overlap several of them. It would not know which one to respect.
Rob Holmes
------------------------------------------------------------------------------------------------------------------------------------------