Skip to content

Spacing type radio button for repeat and circular repeat node #2674

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

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

Ripper53
Copy link

@Ripper53 Ripper53 commented May 26, 2025

Closes #2551

  1. Added Spacing radio parameter to Repeat node, containing Span, Envelope, Pitch, and Gap options for spacing. See issue for how they must be spaced.
  2. Added Angle Pitch float parameter and Spacing radio parameter for Circular Repeat node. The Span option uses the calculations which already existed, the Pitch option rotates the next instance around the radius of the imaginary circle according to the Angle Pitch parameter and places the shape there.
  3. Added a unit macro attribute. Given string parameter is displayed as a unit type for the parameter.
  4. Added a step macro attribute. Given integer parameter is used as the step value for the parameter (ex. the arrow buttons on a number input increment/decrement by step amount).
  5. Added a display_decimal_places macro attribute. Given positive integer parameter is used to know how many decimal places to display for the number input if they are not 0.

Usage for macros:

#[unit('px')]
#[step(2.)]
#[display_decimal_places(1)]
num: f64

@Ripper53 Ripper53 marked this pull request as ready for review May 26, 2025 19:36
@Ripper53 Ripper53 marked this pull request as draft May 30, 2025 02:57
@Ripper53 Ripper53 marked this pull request as ready for review May 30, 2025 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add options to the 'Repeat' node for the spacing with envelope/span/pitch/gap
1 participant