Point to Point Constraint: Updating distance between the objects

Ok, I’ve exhausted my brain and search engine on this and have had no luck. :frowning:

I created PTP constraint between two objects with python using the example hereto simulate rope swinging physics.
Is it possible to change the distance between the two objects while the constraint is active?
(Like if Spider Man wanted to climb up the web he hung from…)

Any and all help will be greatly appreciated. Thanks in advance

yes I think so, you just have to save the constraint as a property then recall it and edit it,

let me dig for a example