algorithmic modeling for Rhino
Nope, I still don't get it, sorry.
If I understand you question correctly. Then here is my solution:
1. Change the first input (obj) to a List input. (this will now make the component run only once)
2. After you make the change, close the script editor and reopen it. Line 68 will now be automatically changed to:
private void RunScript(List<Guid> obj, ...
3. Change line 76 to:
int lIndex = doc.Objects.Find(obj).Attributes.LayerIndex;
(So basically still the same code except that you replace "obj" with "obj")
I hope it this answers your specific question. I think what you are trying to achieve is a bit odd but without understand fully what your end goal is, I am afraid I cannot advise futher. :)
Hi Long Nguyen, Thank you for your help it seems to solve my problems. However I apologize for the lack of clarity, but I'm really a beginner with programming in GH. Thank you all for the support.
My pleasure. Glad it helped :)