I can’t try out ghpythonlib on Rhino 6 at the moment, but a good way of exploring these things in the absence of (good) documentation is using dir() and help() functions:
import ghpythonlib.components as comps
print dir(comps)
# ouch, that's too many to sift through.. let python do the filtering:
print [c for c in comps if c.lower().contains("shortest")]
# assuming you found it:
help(comps.ShortestWalkComponent) # or whatever it's called
Yes, I did not understood it completely how to continue.
Do you know any example wherein people input a component, while knowing how to fill in the variables for input and output related stuff?
I found shortestwalk with Dir very quickly, but did not really see other stuff/documentation.
I think I missed something again.
I got this with help.
Help on namespace_object in module ghpythonlib.components
| Data and other attributes defined here:
|
| __init__(self) unbound <class 'ghpythonlib.components.namespace_object'> method
Hmm, so it might not be a regular python object, there may be some tricky IronPython magic going on here that links the classes, that I’m not familiar with either.
I would run dir() on the object again, or try and initialize it ( looks like __init__ takes 0 arguments) and inspect the resulting class instance, just keep digging until something turns up.
(How familiar with Python are you? This might not be the best approach for a relative beginner. Also if you’re trying to solve a particular problem, that may be achievable with regular GH components)