What is the script equivalent for point in curve component

I’m trying to mimic the effect of the point in curve component in C# but am unable to find any method or class to do so. It would be helpful if anyone could suggest any method or any reference link to do so…,
Thank you.


Could this be what you are looking for:


Screen Shot 052

Yes, Thanks a lot.