Grasshopper

algorithmic modeling for Rhino

How to set and alter persistent data records

Types of Data

Parameters are only used to store information, but most parameters can store two different kinds;

Volatile and Persistent data. Volatile data is inherited from one or more source parameters and is destroyed (i.e. recollected) whenever a new solution starts. Persistent data is data which has been specifically set by the user. Whenever a parameter is hooked up to a source object the persistent data is ignored, but not destroyed.


(The exception here are output parameters which can neither store permanent records nor define a set of sources. Output parameters are fully under the control of the component that owns them.)


Persistent data is accessed through the menu, and depending on the kind of parameter has a different manager. Vector parameters for example allow you to set both single and multiple vectors through the menu.


But, let's back up a few steps and see how a default Vector parameter behaves. Once you drag+drop it from the Vector Panel onto the canvas, you will see the following:


The parameter is orange, indicating it generated a warning. It's nothing serious, the warning is simply there to inform you that the parameter is empty (it contains no persistent records and it failed to collect volatile data) and thus has no effect on the outcome of a history solution. The context menu of the Parameter offers 2 ways of setting persistent data: single and multiple:


Once you click on either of these menu items, the Grasshopper window will disappear and you will be asked to pick a vector in one of the Rhino viewports:


Once you have defined all the vectors you want, you can press Enter and they will become part of the Parameters Persistent Data Record. This means the Parameter is now no longer empty and it turns from orange to black:


At this point you can use this parameter to 'seed' as many objects as you like with identical vectors.

Views: 2395

Comment

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

Comment by Aaron Delatorre on October 13, 2024 at 10:32am

After a long day at work in Australia, I was looking for something fun and relaxing to do, and that’s when I found King Johnnie. I’ve always enjoyed playing online games, but this casino has really kept me coming back with its fantastic range of slots and table games. One night, I even hit a nice win on a slot game, which was an awesome surprise. It’s a great way to unwind, and the fast payouts make it even more satisfying.

Comment by click on June 1, 2019 at 1:29am

Thanks for the nice post here you can need fix connections for bluetooth audio devices and wireless displays i... here and save to all device setting.

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service