Hi Rownn, thanks for reaching us.
With regard to your question, as pointed out in our documentation you can move back and forth from percentage to unit offset by using:
A few observations now:
- the curve parameter or "offset" as called in Cinema 4D, always ranges (on a specific segment) from 0 to 1.
- depending on the curve parametrization, actually how "intermediate points" are generated the offset can be equal to the curve percentage: this happens only if the Uniform mode as been set.
Let's see two simple cases:
- given a certain curve with Intermediate Points generation set to Natural and an "arbitrary" distance of 400 units we obtain:
splineLength: 849.075096635
customLength: 400
lengthRatio (customLength / splineLength): 0.471100850308
GetOffsetFromReal(lengthRatio,0): 0.452809444459
GetOffsetFromUnit(customLength,0): 0.452809444459
- given the same curve with Intermediate Points generation set to Uniform and an "arbitrary" distance of 400 units we obtain:
splineLength: 845.774079501
customLength: 400
lengthRatio (customLength / splineLength): 0.472939535148
GetOffsetFromReal(lengthRatio,0): 0.472783546885
GetOffsetFromUnit(customLength,0): 0.47278354688
In the second case the ratio expressed by the arbitrary length and the overall curve length matches the offset which is completely correct considering the Uniform option
Let me know if it helps to address your question or if there are further points to better discuss.
Riccardo
EDIT: I've fixed the naming convention the text snippets to make it more readable