I have created a sample user defined function used in a solver variable in motionsolve.
Here is how I did it:
Here is the py code:
I tried to run the simulation and plot the results, however I am getting a value of 0 in the primary pulley radius throughout the simualation.