MAXON CINEMA 4D: Cinema 4D Forum Adobe After Effects Forum

Spline Dynamics - Secure anchor points to prevent rotation

COW Forums : Maxon Cinema 4D

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Kyal Cundall
Spline Dynamics - Secure anchor points to prevent rotation
on Oct 1, 2015 at 8:22:57 am

Hello,

I am attempting to setup a dynamic model of bluetooth earphones with the cable connecting the earpieces applied with spline dynamics. I have no problem setting up the initial anchor points, and even found a way to attach the remote using the align to spline tag.

The problem is that the cable is not round it is made from a sweep nurbs consisting of a spline and a rounded rectangle. When I run the simulation the anchor points aren't locked in terms of rotation and they swivel as if they are attached by a hook or pin to the bottom of the earpiece. The remote also swivels unrelated to the direction of the cable but this is not as important as it only happens with big movements andit is probably unrelated to spline dynamics.

Is there any way of preventing the anchor points from spinning or swivelling around? Please help me!!!

https://images.creativecow.net/288912/screenshot2015-10-01at09.16.29.png

https://images.creativecow.net/288912/screenshot2015-10-01at09.13.39.png

Thanks in advance,
Vegend


Return to posts index

Seun Jubril
Re: Spline Dynamics - Secure anchor points to prevent rotation
on Oct 4, 2017 at 3:23:30 pm

Dude, if you've figured out an answer to this, let me know. Dealing with the same issue right now.


Return to posts index

Jason Mettler
Re: Spline Dynamics - Secure anchor points to prevent rotation
on Oct 4, 2017 at 7:46:49 pm

It's hard to tell by looking but it looks like your spline shape that is being swept is turned to the wrong axis. Try rotating 90 degrees on X axis


Return to posts index


Kyal Cundall
Re: Spline Dynamics - Secure anchor points to prevent rotation
on Oct 5, 2017 at 3:14:01 pm

So I found a solution and forgot about this post.

The "Hair Constraints" work well when the 'hair spline' uses a circle 'sweep '. When you use a rectangle to sweep the 'hair spline', the rotation problem occurs.

There are a few things I have learned...

Ensure that you cache the dynamics, this creates a more accurate representation of the animation and requires less resources to run.

I also over came this by putting the entire earphone (both earbuds, cable and remote) into a null object (call it earphone null), the cable was straight linear and adaptive, i subdivided it to have 10 vertex points. I then applied a spline wrap to the earphone null (place the earphone null and spline wrap inside another null, call it spline wrap null). I created a hair spline with constraints and used it as the path for the spline wrap.

You need to ensure you have chosen the correct axis to align, switch mode to 'keep length' (to prevent stretching), play with the 'From' and 'To' settings to ensure the earbuds are not included in the spline dynamics.

Then place everything in another null call it "dynamic earphones". You can then move that null around with a dynamic cable. If you need to move one of the earphones, ensure the constraint is attached to an object, make it invisible and animate that.

If you need more control over the animation, animate the align spline 'offset value', this makes the earphones follow a path you choose.

Below are some examples of what I have made using these methods:



















I hope this was useful, it took me a while to figure it out.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]