Grasshopper

algorithmic modeling for Rhino

Probably a very simple question:

I use the string module as input for the Brep module to reference objects. I called 5 objects "1" and put in "1" in the string module. Only one object gets referenced, and when I copy this object, another one becomes referenced. I want all 5 objects with the name "1" to be referenced. How do I do it?

Views: 566

Attachments:

Replies to This Discussion

I think it will only return the first one that it finds with that name and because you copy and paste, the new one is the first one.

You could concatenate the Name with a series of numbers if you take the time to name each one.

Hi and thanks for your reply.
What I want to do, is to be able to reference multiple objects in an easy and fast way. If I can reference multiple objects by using one string and one name, then the handling of referenced objects would be SO much easier and faster. To name them all different and put in different strings is too complicated to be a good solution for my problem.
If you are using GH v0.6 the you could use Giulio's BakeAttributes Component to name all of you objects First and then Select them in your definition. See example below

It will not work in v0.7
Attachments:
To name them with BakeAttributes I need to reference them first...

The thing is, this is a general question about workflow. I thought the whole point of being able to reference objects by their name was that you no longer would need to right click on the module and choose "reference multiple objects" and then select all the objects you want to reference. This method needs to be redone everytime you create a new object that you want to include in GH. What I want is a way to automatically reference a bunch of rhino objects, by placing them in a particular layer or by naming them in a particular way. There must be a way... Please help.
I meant for this as a tool to make naming them easier pre-workflow. Presumably you will have to manually select the objects to name them in the first place.
Yes, that's true. It's a clever way of naming them, and it's probably very useful.

Could it be done with a C# component?!

Is is possible to select objects that way...?

Yes, the script component can output Guids which will be converted into referenced geometry if plugged into a geometry parameter.

 

--

David Rutten

david@mcneel.com

Seattle, WA

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service