Beginner: Synchronizing parameters

Grasshopper parameters can be synchronized with the Fologram ‘Parameters’ interface and controlled live on the HoloLens or on a mobile device. Parameter synchronization supports Number Sliders, Boolean Toggles, Buttons and Value Lists.

Adding a Synchronize Parameters component
The ‘Sync Parameters’ component enables a synchronization toggle on all supported components on the Grasshopper canvas at any time. Once added to the canvas, a grey ‘Sync Parameters’ toggle will appear next to all Number Sliders, Boolean Toggles, Buttons and Value Lists. Only one ‘Sync Parameters’ component can be added to any grasshopper definition, and once deleted all ‘Sync Parameters’ toggles will disappear.

How to synchronize a parameter
To synchronize a parameter, click on the ‘Sync Parameters’ toggle next to the parameter. The toggle will switch from grey to purple. The parameter will now appear on any HoloLens or mobile device connected to your session in the ‘Parameters’ interface. To turn the parameter off, simply click on the ‘‘Sync Parameters’ toggle next to the parameter. Parameter synchronization is limited to 3 parameters in the free version of the Fologram mobile app.

Using a parameter in Fologram
Synchronized parameters will appear in the ‘Parameters’ interface of any HoloLens or mobile device connected to your session, and can be controlled directly inside the device. Any changes made in the device will update the Grasshopper document, and vice versa.

What is and isn’t synchronized?
Any synchronized parameters will display a purple ‘Sync Parameters’ toggle next to their name. Clicking on the ‘Sync Parameters’ component in your document will display a connection between the component and any parameters being synchronized with Fologram.

Example file:
In this example, a Number Slider controlling the radius of a Mesh Sphere is synchronized with Fologram, whilst a Number Slider controlling the V Count of the Mesh Sphere is not synchronized. Only the ‘Radius’ number slider will appear in the Fologram Parameters interface when connected to a HoloLens or mobile device. The Mesh Sphere is then sent to Fologram using a ‘Sync Object’ component.
Synchronizing parameters from Grasshopper to Fologram.gh (6.3 KB)