Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New extension: External Layout Tools #1231

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

Description

This extension allows you to add an ID to objects from an external layout and allows for easy manipulation of these objects.

How to use the extension

To make the extension work properly, you need to create an object group with all objects that are in your external layouts. If you use 5 objects in your external layouts, then you need to have an object group with these 5 objects.

Actions:

Create objects from an external layout - this action works just like the standard action with one small change, it sets up the objects, so that an ID can be added.

Add an ID to objects from an external layout - this action adds the ID to the objects that have been recently created from an external layout. It also allows you to save the ID to an object variable. This action cannot be in the same event with the "Create objects" action and cannot be a sub-event if the parent event contains that action.
If you create another external layout without setting the ID to the previous one, only the newest one can be assgined an ID.

Delete objects from an external layout - this actions simply picks all of the objects with the specified ID and deletes them.

Correct uses of actions:
correct use of actions
another correct use of actions

Incorrect uses of actions:
incorrect use of actions
another incorrect use of actions

Conditions:

Pick objects with specified ID - this condition allows you to pick objects that have the specified ID. It allows for easy manipulation of objects from an external layout.
This condition needs to be used in a "for each" event for it to work properly and because of that is less performant than checking an object variable with the ID.

correct use of condition
correct use of ID variable
incorrect use of condition

Expressions:

This extension adds 1 condition - ExternalLayoutID. It allows to check the ID of a specific object.

Checklist

  • I've followed all of the best practices.
  • I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

What tier of review do you aim for your extension?

Community (Unreviewed)

Example file

ExternalLayoutToolsExample.zip

Extension file

ExternalLayoutTools.zip

@github-actions github-actions bot requested a review from a team as a code owner March 21, 2024 13:00
@github-actions github-actions bot added the ✨ New extension A new extension label Mar 21, 2024
@VegeTato VegeTato added 👨‍👩‍👧‍👦 Community extension An extension submission to be merged ASAP with a lightweight review. ⌨ JavaScript Uses JavaScript code, and thereby needs a reviewer who knows JavaScript. labels Mar 22, 2024
@NiQsterVX
Copy link

Small update to the extension example and description.
ExternalLayoutTools.zip
ExternalLayoutToolsExample.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👨‍👩‍👧‍👦 Community extension An extension submission to be merged ASAP with a lightweight review. ⌨ JavaScript Uses JavaScript code, and thereby needs a reviewer who knows JavaScript. ✨ New extension A new extension
Projects
Status: Needs review
Development

Successfully merging this pull request may close these issues.

2 participants