Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/30/2022 in all areas

  1. Since a good explanation would take some time, let me provide you for the time being, a direct solution to your problem, while also answering some of your questions: If I understood correctly, you want to take a spline with Type set to "Bezier" and Intermediate Points set to "Uniform" and use those uniform intermediate points to drive the position of an Align To Spline tag (or more specifically get the position values for the intermediate points, as percentages along the interpolated spline). If this is the desired behavior, you can do the following: 1. Select your original Spline Object, which I will henceforth refer to as the Original Spline. 2. Do a Current State to Object operation on it. This should place a new spline object right below your current one with the same name as the original spline. 3. To avoid confusion going forward, rename this newly created spline to "Interpolated Spline" and I will refer to it as the Interpolated Spline going in the following steps. 4. If you click on the Interpolated Spline to select it, you will see that the Type attribute has been set to "Linear" and that the Intermediate Points attribute has been set to "Adaptive". You can change the Intermediate Points to "None", since for a linear spline, there are no interpolated points. Now, let me explain what we have done, above. We have created a new spline, that is a copy of the old spline with the following differences: Original Spline - composed of a mathematical representation describing its curves, combined with an interpolation of that mathematical representation based on your interpolation settings (e.g., "Bezier", "Uniform", and some number of intermediate points you've entered). Interpolated Spline - composed of straight line segments representing the Line Object that was used to back your Original Spline's mathematical representation 5. Use the Interpolated Spline rather than the Original Spline to drive your Align To Spline tag(s). You can hide the Interpolated Spline object from the Viewport, since the Original Spline is already visible (otherwise you will have one spline on top of another). However, do not disable the Interpolated Spline by clicking on the green checkmark next to it to change it to a red x, or you will not be able to use it as a source for any operation. 6. By attaching your Align to Spline tag to the Interpolated Spline, instead of the Original Spline, you will be able to use the expresso node layout on the previous page to get the positions as percentage locations of all of the points. Likewise, the Align to Spline tag will correctly track your Interpolated Spline, as you see it on the screen (and on the screen when in Modeling Mode it should look identical to the Original Spline), rather than track the mathematical representation of your Original Spline, which you can see by selecting the Original Spline and entering Point Mode. I hope this is helpful, has resolved your issues, and answered at least some of your questions in the process. Take-aways: 1. The Align to Spline tag tracks the mathematical representation of the Source Spline object that is specified as the tag's Spline Path. Setting the source original spline's Intermediate Points value to "Uniform" allows for smoother more uniform (i.e., less jumpy) motion between (mathematical) spline points, but does not otherwise change the spline representation that is being tracked by the tag. Another way to phrase the above is that the Align to Spline tag does not track what you see in the viewport in Modeling Mode. This view is the interpolated representation of your spline. Instead, it tracks the "perfect" mathematical representation of the curvature of your spline, as it would be presented to you by Cinema 4D while in Point Mode (i.e., the viewport representation showing your spline's actual mathematical point positions and any tangent handles associated with them, which are displayed for the points of the spline that are in a selected state). 2. In order to track uniform interpolated points, you need to create a new Spline Object with Type set to "Linear", that represents the Line Object backing the mathematical representation of your "Bezier" (or other type of mathematically based) spline. 3. The aforementioned Line Object based spline can be generated by performing a Current State to Object operation on the original mathematical spline. It's Type will automatically be set to "Linear" and it, rather than the original spline, can be used to drive an Align to Spline tag with the expected behavior of a uniform spline. Bonus Take-Away: 4. When a Cloner or a Matrix object is set to "Object" Mode and the Distribution is set to "Vertex", it is the vertices of the underlying Line Object that get used and not the vertices of the mathematical Spline Object. In other words, with regard to the points used for placement, these generators do the "opposite" of what the Align to Spline tag does in the context of the above discussion.
    2 points
  2. Nice solution, works well. That's exactly what I needed to slide IK-spline controlled Uniform spline after (Adaptive or None intermediated points) different type of spline with same starting percentage position of points aligned one on other. Thank you both of you.
    1 point
  3. U r a Master! 💯 Thanks so much! i will incorporate your ideas!
    1 point
  4. TP Follow Spline has two main parameters to adjust how the particles follow. Tangent Velocity defines how quickly they adjust their direction of movement to the direction of the spline, this works fine for you. The second is Point Velocity, this defines how close to the spline the particles try to stay. You need to increase this value. To high values can lead to the particles getting stuck, so you have to tune this a bit. I tried and a value of 30 should be ok for you. If you want to use much higher values you need to increase the Precision (Sample count) so the particles do not get stuck. You will always get a bit of overshoot though.
    1 point
×
×
  • Create New...