No sorry, but looking back at this thread, I assume you don‘t know any basics of python. May try to learn them first before creating a script, where you have to ask for every line. Don‘t get me wrong, it’s not meant to be offensive or something like this. Surely someone will help you. But I don‘t think this is effective if you don‘t understand anything what’s written there.
Well, actually, I learned something about Python. But, I am not familiar with any Python wherein somebody imports a component and knows how to fill in the rest (not a thing of Rhino, but a component of Grasshopper).
Same with the problem at this thread. That you can‘t import a line from the sdk into your phyton component on your own, I would recommend learning more than „something“. But as I said this is not meant to be offensive, just a recommendation
BTW: why do you want to import shortest walk into phyton? Can‘t you just use the component before and use its output?
Yes I am familiar with that and understand that.
However, there is nothing I can find to learn to import such thing. It should be possible, I want to find a clear example that demonstrate it from which I can learn from.
About your BTW: Well, I can use code from the internet, but it would be more easy to shortcut all those scroll of codes by implementing and adjusting some way the components.
But, if not possible, is it possible to open the component and dig into it to rewire things or better, make an adjustment on them to make them comply with what I want?
Other BTW: I want to make an aggregation. I am now done with looping things and want to Python it. I want to include parts of components or learn how existing components work.