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

[FEAT]: Create tool to add/edit multiple custom attributes #55

Closed
TrevisanGMW opened this issue Aug 6, 2021 · 4 comments
Closed

[FEAT]: Create tool to add/edit multiple custom attributes #55

TrevisanGMW opened this issue Aug 6, 2021 · 4 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@TrevisanGMW
Copy link
Owner

Script would work exactly like the "Add attribute" function, but it would retain the parameters and allow for multiple variables (separated by commas)

@TrevisanGMW TrevisanGMW added the good first issue Good for newcomers label Aug 6, 2021
@NovusEdge
Copy link

I'd like to take this issue up if it's still open

@TrevisanGMW TrevisanGMW changed the title Create script to add multiply custom attributes with the same parameters Create script to add multiple custom attributes with the same parameters Aug 7, 2021
@TrevisanGMW
Copy link
Owner Author

TrevisanGMW commented Aug 7, 2021

I'd like to take this issue up if it's still open

Hey @NovusEdge
Yes, feel free to create it. Any help would be more than welcome.

To clarify the idea, here is a better description:
I thought of using a textField with a list of attributes the user could add to the selected objects.
This textField would allow for multiple attributes to be added at the same time (these would be separated by commas)
Ideally the script would also have an option to delete all attributes in the list. (in case incorrectly created)

Here are some other things we could add:

  • The scalar options present in the “Add attribute” windows (so the user can customize what they want, such as datatype and minimum or maximum limits)
  • A button to create a “separator” attribute (essentially a locked attribute with an enum containing dashes “-------” to be used as a separator)
  • Maybe an import/export option?

Ideally the UI would be consistent with the rest of the scripts. So feel free to copy an existing script so you can to extract it from them. "GT Path Manager" uses a QT version of it, while most of the other ones rely on Maya Cmds and the Open Maya library. "GT Generate Text Curve" has a similar system that uses a textfield to create curves, so it could be a good starting point.
If possible, try to keep all the code within the same script. I know it might be a bit inconvenient as it would be easier to create modules, but I'm trying to keep all scripts "standalone" in case people don't want to download the entire package.

Let me know in case you need any clarification or help :)

@TrevisanGMW TrevisanGMW assigned TrevisanGMW and unassigned NovusEdge Jun 27, 2022
@TrevisanGMW TrevisanGMW changed the title Create script to add multiple custom attributes with the same parameters Create script to add/edit multiple custom attributes with the same parameters Jun 27, 2022
@TrevisanGMW
Copy link
Owner Author

Consider adding:

  • Textfield with list of affected attributes.
  • Hide/unhide attributes for selected elements.
  • Lock/unlock attributes for selected elements.
  • Auto create a list of attributes for selected elements.
  • Auto delete a list of attributes for selected elements.
  • Maybe attempt to change the order of the attributes within Maya.

@TrevisanGMW TrevisanGMW changed the title Create script to add/edit multiple custom attributes with the same parameters Create script to add/edit multiple custom attributes Jul 24, 2022
@TrevisanGMW TrevisanGMW changed the title Create script to add/edit multiple custom attributes [FEAT]: Create script to add/edit multiple custom attributes Sep 19, 2022
@TrevisanGMW TrevisanGMW changed the title [FEAT]: Create script to add/edit multiple custom attributes [FEAT]: Create tool to add/edit multiple custom attributes Apr 18, 2023
@TrevisanGMW
Copy link
Owner Author

Will track using "Projects"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Development

No branches or pull requests

2 participants