🥞
Glif Docs/Guide
  • Getting Started
    • 👋What is Glif?
    • 💡What can I do with a glif?
      • 🏃Run a glif
      • 🔌Build a glif
      • 🔀Remix a glif
      • 🗣️Comment on a glif
      • 🔳Embed a glif
    • ⚒️How do I build a glif?
      • 📽️Video tutorial: Building a simple image generator
      • 🟰Using variables
    • ⚙️Profile Settings
    • 🪙Credits and Payments
    • ❓FAQs
  • Blocks
    • 🙋Inputs
      • ✍️Text Input Block
      • 🖼️Image Input Block
      • 📋Multipick Block
    • 🪄Generators
      • 📃Text Block
      • 🖼️Image Block
      • ➡️Image to Text Block
        • Florence2Sam2Segmenter
    • 🧰Tools
      • 🔀Text Combiner Block
      • 🔬JSON Extractor Block
    • 💅Styling
      • 🎨HTML Block
      • 🖼️Canvas Block
    • 🧑‍🔬Advanced/Experimental
      • 🎙️Audio Input Block
      • ↔️Glif Block
      • 🌐Web Fetcher Block
      • 🔊Audio Spell
      • 🧱ComfyUI Block
      • 📡Audio to Text Block
      • 🎥Video Input Block
      • 🔧JSON Repair Block
  • Apps
    • 🎨Glif It! Browser Extension
  • Glif University
    • 🎥Video Tutorials
      • 🐲How To: D&D Character Sheet Generator
      • 🧠How To: Expanding Brain Meme Generator
      • 🦑How To: Occult Memelord Generator
      • 🥸How To: InstantID Portrait Restyle Glif
      • 🕺How To: Style and Pose a Character with InstantID + Controlnet
      • 😱How To: Create a Simple Cartoon Portrait Animation Glif (LivePortrait + Custom Blocks)
      • 👗How to Create a Clothing Restyler App (IP Adapter, ControlNet + GPT Vision)
      • 🤡How to Create a 4+ Panel Storyboard/Comic (Flux Schnell)
      • 🎂How to Create a Recipe Generator with Accompanying Pictures
      • How to Use JasperAI Depth Controlnet on Flux Dev
      • 🦸‍♂️How to Make a Consistent Comic Panel Generator
    • 🧑‍🏫Prompt Engineering 101
    • 🖼️ControlNet
    • 📚AI Glossary
  • API - for Developers
    • ⚡Running glifs via the API
    • 🤖Using AI Assistants to build with the Glif API
    • 📙Reading & writing data via the API
    • 🗾Glif Graph JSON Schema
    • 📫Embed player & custom webpages
    • 📫Sample code
    • ❓What can I make with the Glif API?
      • Browser Extensions
      • Discord Bots
      • Games
      • Social Media Bots
      • Experimental Projects
  • Policies
    • 👨‍👩‍👧‍👦Community Guidelines
  • Programs
    • 🖼️Loradex Trainer Program
  • Community Resources
    • 🧑‍🤝‍🧑Resources Created by Glif Community Members
  • Contact Us
    • 📣Send us your feedback
    • 🚔Information for law enforcement
Powered by GitBook
On this page
  • Random mode
  • Key-value mode
  1. Blocks
  2. Inputs

Multipick Block

Create a dropdown list of predefined items for a user to select.

PreviousImage Input BlockNextGenerators

Last updated 6 months ago

The multipick block allows a user to select an item from a predefined list of options, or have an option randomly selected.

Title

  • Click the pencil icon next to the block’s title to edit it

    • Tip: This is also the block’s variable name, which can be used to dynamically populate data in other blocks.

Text

  • Enter one dropdown menu option per line

  • Use the pipe character "|" to delineate key/value pairs, like "small | 512x512". In the menu, the user would see

Random mode

Select the Randomize option to randomly select an option when the glif is run, without any user input required.

In the "cake/pie" example above, this would result in half of runs using "cake" and half using "pie"

Key-value mode

You can also specify key-value pairs using a pipe delimeter (|, generally found above the Enter/Return key on most keyboards)

This allows you to show the user a list of options like "small, medium, large" but have those values map to i.e.

small | 512x512
medium | 1024x1024
large | 2048x2048
harry potter | {"class": "wizard", "age": "kid", "gender": "male"}
xena | {"class": "warrior", "age": "young", "gender": "female"}
gandalf | {"class": "wizard", "age": "crazy old", "gender": "istari"}

It's also possible to have keys correspodn to full JSON objects that you can then combine with the Very fancy!

🙋
📋
JSONExtractor block!