Configurable Joint referencing from scrip

Basically I am trying to create an arm, with an elbow that I would be able to control with input.
I found this thread.
It seems to deal with the exact problem, but does not mention how to reference the joint. (specifically the “thisConfJoint” variable)
I have tried to find answer even further than on Google page 10, but with no luck. Should I do something like GameObject Joint = thisConfJoint.
Nothing I try seems to work.
Please at least direct me in the right direction guys. :confused:

You should do something like:

public ConfigurableJoint myJoint;
void Start () {
      myJoint = GetComponent<ConfigurableJoint>();

or you can make a variable and drag it to it in the inspector.