Grasshopper

algorithmic modeling for Rhino

Information

MetaHopper

Welcome to Metahopper - a tool for controlling Grasshopper with Grasshopper :)

This library contains a number of components and commands for querying and manipulating Grasshopper components dynamically. You can retrieve components and objects based on their type, their library, the group they're in, or by selecting them directly - or even get all the objects in a document at once. You can then retrieve information about these components + parameters, the libraries they belong to. You can also manipulate objects directly: enabling/disabling, turning preview on and off, changing the color of groups, the text and size of scribbles, and the shape of sketch objects.


MetaHopper also adds a new menu to the Grasshopper document editor, that wraps up several functions:

BestPracticize Selection lets you pick a group and auto-insert params for all the inputs and outputs coming into/out of the group. This makes for nice, tidy functional groupings that make your Grasshopper code easier to read. 

Save Snippet improves on an earlier script I released - it lets you select any group of components + objects and save them as a single user object - without needing to cluster them. This is useful when you want things saved that have internal UI elements - like a graph mapper or slider for instance - that you want to be able to manipulate with the reusable chunk of code you're saving.

Bottleneck Navigator opens up a window that lets you see all the components in your definition, sorted by their "Runtime" - how long it took them to execute. You can click on any item in the list and zoom to it instantly - so that you can find opportunities for optimization in your definition.

Download it here!

Members: 197
Latest Activity: Nov 6

Component Listing

Attributes

Set Group Properties

Set the name, color, and style of a group.

Control Wire Display

Control the display of wires for parameters and components.

Set Scribble Properties

Set the text, size, and font of a Scribble.

Hide/Show Object Preview

Programmatically control the preview visibility of specified objects

Rename Object

Programmatically set the nickname of specified objects

Enable/Disable Object

Programmatically enable/disable solving for specified objects

Set Sketch

Modify the form of an existing sketch object.

Bake Object

Programmatically bake the geometry of specified objects

Wire Display Toggle

Switch all document wires between hidden and faint.

Batch

BatchSlider

Converts a standard GH Slider into a variable input to the Batch Driver

Batch Animator

Saves a screenshot of every state of the model in the batch to a folder.

Batch Variable from List

Converts a list of values such as a series or range into a variable input to the Batch Driver

BatchDriver

Run a batch analysis across a range of variable parameters

Document

Param Info

Gets information about param objects

Object Info

Gets basic information from any DocumentObject

Assembly Info

Gets information about an assembly

Component Info

Get information about a component object. Retrieve components with Document Info, Get Attached Component, or Get Selected Component.

Document Info

Get information about the GH document and its components

Object Retrieval

Get Groups

Get all groups in the document

Get Connected Objects

Gets all components and params connected to this component

Get Objects of Same Library

Gets all components and params that are from the same library as the attached.

Get Selected Objects

Get the objects currently selected on the canvas

Get Scribbles

Get all Scribbles in the document

Get Objects of Same Type

Gets all components and params that are of the same type as the attached.

Get Objects in Group

Gets all components and params in the same group as this component (or the specified group if supplied)

Utility

Best Practicizer

Takes a selected group and inserts input and output params at both edges for any data that goes outside the group.

Highlight Objects

Highlight objects by adding them a new group

Set Object Value

Tries to set the value of an object. What value it sets varies by type - it sets a slider’s numeric value, a panel or scribble’s text contents, etc

Relative Path

Appends the directory this definition is saved in to a file path. Auto-converts the contents of a text panel containing an absolute path

Discussion Forum

enable disable component error

nothing much to say.   turn off is working but turn on not at alli have noticed it for a while.* will this be the platform maybe to ask for a "refresh component" component?this way i dont need to…Continue

Started by AJ Nov 3.

Enable/Disable inside of clusters

Hi Andrew,I am attempting to use your Enable/Disable toggle inside of a cluster and it does not appear to work.  Is it possible I am doing something wrong or is this a known issue?Your plug-in is…Continue

Started by Ben Pearce Oct 3.

Clear values for multiple params and objects

Hi Andrew, great plugin!Is there a way to clear referenced geometry in multiple params?i.e. I've selected some params with the 'Select Object' component, is there a way to use these references with…Continue

Started by Ian Shepherd Sep 15.

Group Toggle To Remote Panel 2 Replies

Hello Andrew,is it possible for one of the next releases to have an option for the  Group Toggle to be published on the Remote Panel?I´m using "Create Layers" and "Create Attributes" (Human)…Continue

Tags: RemotePanel, Metahopper

Started by 3dcon. Last reply by 3dcon Sep 15.

Comment Wall

Comment

You need to be a member of MetaHopper to add comments!

Comment by Omer G on September 17, 2017 at 3:34am

Got it. Thanks for the quick response and again for the plugin!

Comment by Andrew Heumann on September 15, 2017 at 9:51am

Hi Omer - 

Unfortunately there is no way around this because HoneyBee and LadyBug are not technically "plugins" as far as Grasshopper is concerned - they are just collections of user objects that wrap python scripts. 

Comment by Omer G on September 14, 2017 at 5:36am

Hey!

First of all - Thanks for this plugin. It. Is. Awesome. I love it.

Second - the DocumentInfo tool doesn't show HoneyBee and LadyBug in the plugin list. Is there a way around this? or a fix?

Thanks! 

Comment by Andre Philippi on September 3, 2017 at 5:59am

Thank you Amir!

Comment by Amir Soltani on August 22, 2017 at 1:39pm
Comment by Andre Philippi on August 22, 2017 at 1:36pm

Hi. I really would like to try this component, but the download link keeps returning 404. Is there any other place where we can download it, please?

Comment by Andrew Heumann on July 14, 2017 at 11:42am

You might also be interested in the Freighter project by the resident geniuses at Proving Ground - I think it does much of what you're attempting to do. 

Comment by Andrew Heumann on July 14, 2017 at 11:41am

Hi Tobias - See attached for a version of the code I use to get library dependencies by traversing the Grasshopper document, in a c# scripting component.

Traverse Dependencies.gh

Comment by Tobias Heimig on July 14, 2017 at 6:58am

Hi Andrew, 

Thank you very much. In the moment i am working on a component which "packs" Grasshopperfiles ... what actually means it creats a new folder with the grasshopper, the rhino and all plugin files. I did the most of it but in the moment i have to use the meta hopper "assembly info" to get the names and Filepaths of the plugin files.

I tried to find something in the SDK information but i was not really succsessful ... so if you could give me an idea how the assembly info works that would be really fantastic. 

If you would give me an idea how i 

Comment by Andrew Heumann on July 12, 2017 at 6:19pm

hi Tobias - 

The MetaHopper source is not publicly available, but I am happy to answer any questions you have if there are specific things you're trying to do. 

 

Members (197)

 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2017   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service