Tips and tricks
Discover some valuable tips and tricks for efficient blueprinting, designed to help you navigate and work with blueprints more effectively.
Establishing Block Connections
When you wish to connect two blocks, you can achieve this by simply left-clicking on the output pin and dragging it into the input pin, or vice versa. Additionally, connections can be established automatically when you drag out of a pin and create a new block directly from the search results that appear when you release the pin in the empty area of the blueprint. The system will attempt to provide you with blocks that are similar in type to the pin you initially dragged out.
Automatic Block Creation
For increased efficiency in blueprint workflows, certain blocks are generated automatically when you perform a right-click drag action from an in-pin or out-pin to the blueprint background. This feature is primarily employed with value pins, especially in conjunction with the custom value block.
Here is a list of blocks that are automatically generated when you perform a right-click drag:
Pin Type | Block Created |
---|---|
state |
state_text |
file |
file_custom |
date |
date_currentdate |
object |
object_new_fields (in-pin), object_update_fields (out-pin) |
value |
value_default |
uiclass |
uiclass_custom |
uistyle |
uistyle_custom |
fielddefinitions |
fielddefinitions_get_multiple |
array |
array_values_default |
storage |
storage |
user |
user_current |
flow |
function_custom_execute (out-pin) |
condition |
condition_is_true |
inpinfunction |
inpinfunction_select |
Selecting blocks
You can select any block within the blueprint by clicking on its header area, which is typically the darker-colored part of the block. Once selected, an orange border will appear around the block, indicating your selection. To select multiple blocks at once, you can hold down ctrl
and click on another unselected block. Clicking on a block that's already selected will deselect it. Alternatively, you can select multiple blocks by right-clicking and dragging to create a dark selection area. Simply extend this area over the blocks you wish to select.
Connecting Distant Blocks
Occasionally, the block you wish to connect to may be located outside your current viewport, necessitating a shift in your view. It's not possible to drag a connection directly from the current pin to the distant one. To address this scenario, we've introduced the double-click option. Simply double-click on the pin you intend to connect, pan to the new block, and click once on the target pin. This sequence establishes the connection.
Disconnecting blocks
If you need to disconnect two or more blocks that are linked, you can achieve this by simply right-clicking on the relevant pin. This action will sever the connection between the blocks on both ends. In cases where a pin has multiple connections, a modal will prompt you for confirmation before proceeding.
Removing a block
After selecting one or multiple blocks, you can remove them by pressing backspace
on your keyboard. The block will turn opaque and be outlined with a red dashed border, indicating it has been removed but not yet permanently deleted. To finalize the deletion, simply save the blueprint using the save your changes
button, after which the block will permanently disappear.
Staging and saving a blueprint
After making modifications in your blueprint, you can save them using the save your changes
button. However, if you wish to quickly toggle between the blueprint and your pages to view these changes, you can append ?staging
to the URL of the page you're reviewing. This allows you to see the changes without having to save each one. Alternatively, you can use the shortcut ctrl
+ S
to save and deploy your changes in the blueprint swiftly.
Block options
Each block in the blueprint comes with its own set of options. By clicking on the three dots at the top of a block, a menu will appear, offering block-specific functionalities. However, the following options are always included:
Modify name
: This feature enables you to change the block's name, facilitating easier documentation of a particular flow without needing to use a comment block.Revisions
: Selecting this option opens the logbook, but it's limited to the audit history of that specific block, allowing you to quickly review recent changes affecting it.Documentation
: This opens a new tab with the documentation specific to that block.
Simulating Functions
Certain blocks, particularly those at the beginning of a flow, feature a play icon. Clicking this icon triggers a popup where you can switch between different play modes, activate the current mode (default is 'simulation'), and adjust simulation values. For instance, in the example below,
key
represents an out-pin whose value can be modified. During simulation, this value is passed to the connected blocks. The simulation mode is particularly useful for thorough end-stage debugging.
Blueprint namespacing
When managing numerous functions used across different blueprints, it's advisable to organize them with namespaces. Instead of manually prefixing each function, we recommend utilizing the built-in namespace feature. By clicking on the blueprint's title at the top, a popup will appear, allowing you to add a namespace.
Entering a namespace here will automatically prepend it to all existing functions, both public and private, within the blueprint. Consequently, when these functions are referenced in other blueprints, they will display with the specified namespace prefix, clearly indicating their origin blueprint for easier identification and organization.