Selecting items in succession

Hello guys,
for a project of mine i have a bunch of objects (ObjectName equals LayerName) that i want to perform a Grasshopper script on. The Script is nothing special and i had no problems creating it. However i want to perform the script on all objects in succession. So basicly:
Select object XYZ(Mesh)->Perform Skript->Bake New Object XYZnew(Brep)
Select object ABC(Mesh)->Perform Skript->Bake New Object ABCnew(Brep)

and so on. My idea was to supply the name of the objects via a Textfile, which i loaded Into GH…

Is there anyway to achieve this with Grasshopper? I am farily new to GH and programming in general so any advice is much appreciated. I fear that i will have to use Phyton or smth. similar to achieve my goal.

Regards
Nils

If I understand you correctly, you want to bake objects with name/layer name?
You can bake objects with attributes with some plugins or scripts. For example lunchbox, or I think metahopper/human has a component for it. There are also custom Vb, phyton or c# scripts around the forum.

Thanks for the swift reply. I am allready using lunchbox so the baking is pretty easy. My Problem is the selecting of items in succession.
I need some kind of loop which will do the following:
Select Mesh ->Set that Mesh as Input for my GH-Script->GH-Script does its thing-> Bake the new created Brep
Select next Mesh->Set that Mesh as Input for my GH-Script->GH-Script does its thing-> Bake the new ceated Brep
Repeat till all Meshes were picked once.

I was thinking about doing the selecting via a TxT.-File that i supply in GH. What the Loop should do then is:
Read Line1 of Textfile->Pick Mesh with that name->Set that Mesh as Input for my GH-Script->GH-Script does its thing-> Bake the new created Brep
Read Line2 of Textfile>Pick Mesh with that name->Set that Mesh as Input for my GH-Script->GH-Script does its thing-> Bake the new created Brep

Can this be done:)?

mesh-names-from-txt-to-brep.gh (4.3 KB)
mesh-names-from-txt-to-brep.3dm (79.6 KB)
ids.txt (150 Bytes)
Download the files and in grasshopper select path to ids.txt

It should do what you want. (If you press button/GO , it bake meshes as breps)
Maybe you want to edit the geometry in grasshopper (non-script), so just output the brep and bake it later with another c# component.

Ok, now I got it. You can input with name threw c# for example. Don‘t know if there is a plugin. But I‘m sure there are some.
What you describe also requires a loop. Can be done with anemone or hoopsnake for example.
Isn‘t it possible to do them all at once?

Ok, without looking at his file, I‘m sure @maje90 got what you want :smiley:

Thank you, your Tools were very helpful!
Much appreciated.
Regards
Nils