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: 170
Latest Activity: 12 hours ago

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

Save snippet crashes Rhino 2 Replies

Hi Andrew,when I try to create a snippet with components received from a snippet itself my Rhino will crash.Best,phillipContinue

Tags: crash, snippet, save, metahopper

Started by phillip. Last reply by phillip 12 hours ago.

Request: Instantiate Group

Hi Andrew,would it be possible to have an 'Instantiate Group' component in Metahopper? And a 'Get Last Created' component as well?Thank you for the great plugin!Continue

Started by Samuel Dell'Anna May 19.

Batch Variable Use 1 Reply

Hello Andrew,I am trying to figure out how to use the Batch Driver / Batch Variable Tool to run an analysis across a definition : changing an input sequentially and recording a specific output. Is…Continue

Tags: Batch, Metahopper

Started by Xavier AM. Last reply by Xavier AM Mar 5.

Save snippets is crashing Rhino..

Hi Andrew,I have Rhino 5 Version 5 SR13 64-bit and the latest GH WIP for windows.I'm running bootcamp for windows on my mac.Save snippets is crashing and shutting down Rhino and GH completely.Any…Continue

Started by Doaa Feb 20.

Comment Wall

Comment

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

Comment by Andrew Heumann on August 8, 2016 at 7:36am

Vongsawat - I tried to rebuild your pictured definition but I am not able to reproduce the problem. Can you upload a file? 

Comment by Vongsawat Wongkijjalerd on August 8, 2016 at 5:50am

I have a bunch of data inputs that update at different rates, but I only want the main portion of my code to trigger when I say so (at random intervals)
I had thought using these components would solve this handily as SelObj would only grab the data whenever Expire turned true, but I can't have it output (and so trigger the entire code) with weird null-results, if that makes sense?
D'you think that's possible with MetaHopper? I've tried dipping my toes in to VB scripting but I've no background in VB at all so quickly got scared off.

Comment by Andrew Heumann on August 8, 2016 at 5:25am
Hi Vongsawat - can you explain what you're trying to do here? How and when are you refreshing the get param data component? If it executes while the other components are still solving it makes complete sense that it would not retrieve any value.
Comment by Vongsawat Wongkijjalerd on August 8, 2016 at 5:20am

SelObj can't seem to handle Objects that are changing too fast.
It can still see the Param, but with 20ms timers or active slider manipulation, It can sometimes (or always) output with 0 items.. Is there a way to get around this?

Comment by huntan on August 6, 2016 at 2:53am

Thanks. I guess I had to restart rhino for it to appear.

Comment by Andrew Heumann on August 5, 2016 at 8:37am
Hi huntan - if you install MetaHopper it will show up.
Comment by huntan on August 5, 2016 at 8:03am

Hi guys, just a minor question, how do I get the MetaHopper menu bar as used in #10 in the vimeo video? 

Thanks.

Comment by Andrew Heumann on June 7, 2016 at 5:36pm

Hey Martin. Personally, I like C# best - but this is largely a personal preference. See my extended thoughts on the matter here: http://www.grasshopper3d.com/forum/topics/which-scripting-language-...

Comment by Martin Siegrist on June 7, 2016 at 3:12pm

Andrew, to extend my possibilities in Grasshopper, which programming language should I learn first?

I've done a tiny bit of python scripting. Basically playing around with examples and adapt scripts a little bit but I'm far from being able to come up with my own code... But then apparently some stuff is inaccessible through python and I'd need to know about C#?

Any tips?

Comment by Martin Siegrist on June 1, 2016 at 8:58am

Cool man! Thanks for making my life a bit easier

 

Members (170)

 
 
 

Translate

Search Grasshopper

© 2017   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service