Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • pyddg pyddg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 190
    • Issues 190
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pyddg
  • pyddgpyddg
  • Merge requests
  • !348

Draft: feat(blender): Add sliders

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Le Nam Do requested to merge minimum-viable-sliders into develop Mar 24, 2022
  • Overview 12
  • Commits 21
  • Pipelines 17
  • Changes 5

Follow-up on !343 (merged) .

It is now possible to adjust parameters geometric constructions with sliders in Blender's GUI.

This MR consists of the minimum necessary code to make this work. @tyburn and I intend to make minor changes still, e.g. moving the sliders to a nicer spot in Blender's GUI.

There is some basic documentation for the slider versions and an example in docs/source/blender/sliders.rst or here.

@tyburn I changed the API of the sliders after all, instead of a dictionary users should pass a sequence of string labels and they can pass the arguments and keyword arguments of the callback directly. I think this is "more obvious" compared to a dictionary and certainly more correct. When I say "more correct", I mean that ParamSpec ensures that the add_slider receives arguments of the correct types. This requires either Python 3.10 or the typing_extensions library. I think this is useful, but I can remove this if desired.

If you and @techter think this is okay, then you can remove the draft label and merge this.

Edited Mar 24, 2022 by Le Nam Do
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: minimum-viable-sliders