Python Script Get Link Instance

Hi all!

I am using a python script that needs the input regarding the link instance.

That input is being given by the node of rythm ‘Link’.
But I want to replace it with python code so i can have everything in one place.

I tried something but the output is not exactly the same and because of that the second script does not work.

My litle script gives back a list and it doest not work. Rythm script does not give a list, it gives only the link, and it works with the rest of the script. I believe that diference is the problem.

How can I get, with python, only the link whithout being inside a list?

Thank you!!

Your python node seems to be returning the same object, so I’d guess the issue is your structure. The Rhythm node returns a singleton while your python node returns a list. You probably just need to change your output to the single LinkInstance.

OUT = Value[0] perhaps

1 Like

That’s it. Thank you.