Jump to content

Sign in to follow this  

Animate sweep nurb end based on null?

Recommended Posts

Hi, all--I'm returning to C4D after a while away and am trying to figure out how I can animate the end growth of a seep nurb based on the position of a null moving on an identical path (but not the same path, due to its creation).


The source is mocap. I PSR-constrained nulls to joints for which I want to generate trails (to be used for text alignment, eventuallly). I baked the nulls and converted those Position tracks to splines.


I can use those splines for text alignment or sweeping with arbitrary end-growth animation , easy, but what I want to do is have the end point of the sweep to move based on the movement of one of the nulls (baked or not). (I'm going to do this (1) to create a boolean to reveal what's aligned to the spline, and (2) see the splines drawn on while previs-ing.) They're obviously following an identical path, but the motion timing is irregular because of mocap, so I can't simply align them to the spline path and animate beginning/end points.


All my Googling has come to naught.


I figured that since there is a spline vertex per frame, animating the growth (with a linear tangent) from 0 - 100 along the frame range would match up, due to quicker frame movements consequently having greater distance between corresponding vertices, but this isn't working like I'd hoped.


I've been away a while, but XPresso/expressions don't scare me, and I assume the answer is there. Perhaps identifying the world space coordinates of the "driver" null that will drive the end growth, applying those coordinates to the spline, and then determining at what percentage of the spline that coordinate appears? Or could I align another null to the spline and simultaneously P-constrain it to the source null, so it follows the source but slides along the spline, and I can use that align-to-spline percentage to drive the sweep end?


Thanks so much for any help!


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.



C4D Cafe is the largest CINEMA 4D community. We provide facilities for discussion, showcasing and learning our favorite software :)
  • Create New...