dreamwall-animation / dwpicker Goto Github PK
View Code? Open in Web Editor NEWAnimation picker.
License: MIT License
Animation picker.
License: MIT License
A very exciting AnimSchool Picker alternative! Unfortunately I encountered this "Unhandled Exception" when entering any value in the Picker Editor's text fields with a control button selected:
Traceback (most recent call last):
File "/###/maya/scripts/dwpicker/widgets.py", line 148, in focusInEvent
self._value = self.value()
File "/###/maya/scripts/dwpicker/widgets.py", line 183, in value
return int(self.text())
ValueError: invalid literal for int() with base 10: '10.0'
Maya 2020.4 on Linux. I'll try to recreate this issue on my home workstation as well.
[edit]
Recreated the Unhandled Exception issue on Maya 2020.2 on Windows 11 by changing a value in Shape width/height fields
# Traceback (most recent call last):
# File "C:/Users/aaron/Documents/maya/scripts\dwpicker\widgets.py", line 148, in focusInEvent
# self._value = self.value()
# File "C:/Users/aaron/Documents/maya/scripts\dwpicker\widgets.py", line 183, in value
# return int(self.text())
# ValueError: invalid literal for int() with base 10: '20.0'
Copy paste buttons on editor's top menu bar didn't work, but CTRL+C and CTRL+V did the job
Command buttons didn't execute script - mel print "Button worked";
Importing pkr files, adding background images, adjusting picker size, undo/redo, grid and the color wheels all worked perfectly.
Is it possible to add right click zoom as the default preference so that it is consistent with maya? Also it currently only zooms when the cursor moves up and down, would it be possible to add left and right as well like maya/animschool picker?
Hi, one thing in animschool picker is that we were able to select multiple controls and create a button for that, which is very handy and helpful, I didn't see that option in the picker, wonder if i missed it somewhere. It's not a bug though, but I don't know where else I should wrote this.
Hello, I have tested the new version and it is much better, but I found some new problems when making picker:
Sometimes, when the asb file is overloaded or the reference is overloaded, the existing picker disappears. However, this problem cannot be fixed and reproduced, but this problem has been encountered several times
version 0.4.5
Wow --this is great! I've been frustrated by the AnimSchoolPicker, wishing I could tweak things for our pipeline. I love your tool (and it's transparency).
There are two minor bugs I still find in the latest download:
In both cases it seems like the state of the picker isn't being saved after a change (hopefully a minor fix).
Thanks again!
Matthew
If I grab the corner of the Picker editor window and want to resize it, the window automatically collapses. This happens if I created the picker myself in DW. If I open a picker that I converted from animschool everything works fine.
UPD: I found the reason. It limits the size of the window to the size of the background. If possible, correct it so that it is not limited to the backround and you can resize it as convenient. Thanks.
Is it possible to add an option on the main UI, to turn off "AUTO update" for the selection?
This seems to bite quite a few resources while keeping the UI Open and selecting stuff inside the maya viewport.
Ideally, an option to have this functionality On or OFF, would be perfect, since is a very useful option to keep it on, but
also to be able to turn off (for instance if the ui has only scripts buttns and not selections pickers)
Another thing that i noticed, is that the Picker Ui, seems to gain focus when the mouse rolls over it (without clicking) and looses focus when moving off .
Focus should stay with maya UI priority, since few animation scripts might cause a few headaches while working with the UI open .(Eg, graph editor is open with curve selected, the mouse goes over the Picker, the picker focuses, then the mouse moves into maya viewport, the focus has changed again without the user clicking, the auto stealing focus is a bit annoying to work with, and the picker keeps popping up over other windows, by accidental mouse, passing on it)
Hi there, I'm playing around with the picker, and i think came out great, i just wanted to post a few issues here as I'm finding them, as suggested by your readme.
(maya 2022)
When setting a button to use Right Click option, and setting it to HasCommand True, using Python, inputing a python command, wont work on the picker.
As i right click on the button, from the main UI view, nothing happens, and or no menu are showing for the inserted command.
Also noticed, that even tho i removed a selection Target (made the string Empty), by left clicking is still selecting the object that was removed from the Targets.
Hello, this picker is very excellent, but I will encounter some problems. I will list my questions here for your reference. 1. The view zoom setting is a little anti-human in Maya, and the main performance is whether it easy to be too large or too small; 2. Is it possible to add custom button shapes? 3. The picker will be reset every time it is opened. Can you remember where I put it and the window size? 4. Can the namespace settings be placed in a prominent position?
Can I save the picker in an animation file? Otherwise you have to reopen the picker every time you open the animation file
Hi firstly the picker is amazing and I have fully switched over from using Anim schools picker to yours with not much friction.
I have found a couple issues that I'll list below, if any of these are my own fault and not that of the picker then please let me know
1 -
When re opening maya scenes that previously had multiple different tabs open only the last opened tab will appear and all the other tabs will become that last opened tab.
So If i have 3 pickers open in a maya scene - A, B, C and then close maya with A open. Once I re open the maya scene DW picker will have 3 tabs in the picker but they will be A, A, A.
This means any unsaved adjustments on pickers B + C that are scene specific only will be lost and I will need to reload pickers B + C and re-link them to my rigs in the scene.
2 -
Having a button that runs a custom script only works if the functions they are calling up are native to maya. If I am using other scripts that have their own functions I get this error -
NameError: name 'X’ not defined
Even though if i type that function straight into mayas script editor It works instantly. So script buttons that were working in animschool picker no longer work in DW picker.
3 -
Holding down shift then selecting multiple controls works but holding down both Shift and Control and then selecting multiple controls dosen’t. This is a small one but since holding down both is the selection method in animschool picker it would be a nice quality of life to have it work in DW picker also.
Thanks again for making such a useful tool. If you have any queries about the issues i’m running into let me know. Thanks
1. If I want to save the 2nd opened picker, I have to move the picker I want to save to the first position.
2. If I have two pickers opened and want to save them, only the first will save.
Hello, I made myself an icon for a picker shelf. If you like, you can use it in the general pack. ;)
https://drive.google.com/drive/folders/1PSNY-K7aX-yObHj1ZSrEkDSeXjzeGovZ?usp=sharing
This is actually not possible to execute a function and select shape with the same button. That would be usefull if user want to write an automation (like selection channel in the ui) directly after selection.
maya file work with dwpicker 0.2.0 works fine. when i use dwpicker 0.4.0, open maya file,the picker not show.
script Editor show:
# File "C:/Users/cz/Documents/maya/scripts\dwpicker\picker.py", line 230, in mouseMoveEvent
# self.viewportmapper.to_units_coords(event.pos()),
# File "C:/Users/cz/Documents/maya/scripts\dwpicker\geometry.py", line 44, in to_units_coords
# self.to_units(pixels_point.x() + self.origin.x()),
# File "C:/Users/cz/Documents/maya/scripts\dwpicker\geometry.py", line 35, in to_units
# return pixels / self.zoom
# ZeroDivisionError: float division by zero
version 0.2.0 work fine
version 0.4.0 reopen maya file ,picker not show
HI, thanks fo so cool project!
May i commit some missed functionality here i case we or any one else to implement this.
It is inconvenient without a function to align selector items in editor mode. Vertical and Horizontal alignment, align by Center and both boundaries - 6 buttons at all.
Vertical and horizontal distribution would be helpfull too.
When I am editing the finger picker, since the finger pickers I created are very small so I wish to zoom in to move them around at the right place, but I didn't find a way to zoom in in advanced editing though.
Hi, we would like to request to change default picker data storage format from plain JSON to base64 encoded JSON.
python
keyword and removes picker data from scene.I realize that you may not want to change that, but what if we make a patch to support storage plugins that would be passed to DwPicker constructor?
in advance editing window,If we have the function of copying and pasting the color, size, border and other attributes of picker, it will be more convenient in the production process of picker.
Most pickers have the same color, size, border or other properties. The preset size of the picker window is invisible, and the effect can only be seen after creation. In the advance editing window, if we have this copy and paste instruction, we just need to adjust the size and color of one picker, and then copy it to other pickers.
i can not save picker
Hi, it was very desired option to AnimSchoolPicker and it is nice to have here.
I would tell that we already implemented that on our own, but i think it is nice to have it in mainline and remove any divergence. I would tell more about our approach but you may have another points so, what do you think about this?
I am having a few issue with this, it seems a bit counter intuitive to what the focus point is.
When focusing with F, some of the buttons are getting cut outside the viewer, it seems counter productive, since it requires the user to zoom out and recentre with the mouse.
The way i would see this working is like this :
With No buttons selected inside the viewer, pressing F would focus the entire buttons layout and zoom to fit in the scaled UI view.(you would see everything)
With Multiple buttons selected, pressing F would centre focus on the middle point between the selected buttons and zoom the UI to fit the view of such buttons.(eg 3 buttons are selected, they are fully visible in the UI view)
With One button selected, pressing F would focus and zoom the UI view to the selection.
It is also would be convenient to move selected items with arrow keys on keyboard.
Hi!
Im having problems with the namespace. Want to check if its from the picker side.
When referencing a rig which changes the original rig namespace.
Original rig namespace: rig_group_name
Referenced rig namespace: file_name:rig_group_name
When doing this (referencing the rig), my IK/FK switch code stops working, because it doesn't find the namespace "rig_group_name" because now it has been changed to "file_name:rig_group_name"
Is this something the picker can control?
Cheers.
This one I am actually not very sure, but that's the only suspection I have, cause it happen after I start using the picker. My "f" button, and ctrl -z button is not quite working as before, the f button works on the picker's window, but not working for my perspective view anymore.
Hi,
When the animation scene is more complex and there are many characters, there will be many namespaces and the namespace spelling is very similar. At this time, it will be troublesome to select or input in the list, and the appropriate namespace cannot be quickly matched. Is it possible to add a new button, can get its namespace based on the currently selected controller, which will be very fast!
As this is an ongoing project there are so many updates, and having to check github every now and then is pretty annoying.
I've seen other tools have a very simple Update button which compares the localVersion with the currentVersion. Then downloads, unpacks, replaces and rehashes the Tool.
Is there any way of implementing this onto here? That would be awesome.
Hello, when embedding a picker window in maya, it intercepts hotkeys such as:
ctrl+z
ctrl+s
F
And if possible, please make the window embedding into the interface as in the animshool picker (double click on the top)
Thanks for the great picker.
Originally posted by @KnIVan in #10 (comment)
Hi,
Firts of all congratz for this amazing picker and for ending the AnimSchool monopoly.
Me and other animators are all having the same problem loading the picker.
Im using Maya 2022, Win10.
Any solution to this?
Cheers.
I wanted to replace the previous background, so I tried several ways, one is by clicking Edit- add background item, but I found that is actually adding other images below the current background, and right now I've found correct way to replace it, but I don't know how to delete the images below.
It would be great to be able to Lock the editing of a picker , for instance, you wouldn't want to have a team accidentally override a ui, what i would imagine, is that a team would use a command to run the "viewer" or the "editor".
The viewer is merely the main UI (file load), with no other options to edit any of the buttons.
something like this :
Editor :
import dwpicker
dwpicker.show(edit=True)
And for the viewer :
import dwpicker
dwpicker.show(editor=False, "paths to picker A", "path to picker B", "path to picker C", "etc")
This way, an entire team will be able to open pre made pickers, without accidentally override them.
Great tools, thanks for developing this, i have a few issue working with it tho
appreciate the work
Hi,using wacom pen to zoom the view is not friendly and changes too fast. Similarly, “ALT + pressing the withmiddle mouse button” is as unfriendly as wacom pen. It changes too fast. The use of mouse wheel sliding zoom experience is very friendly. Can this be optimized? Quite a few animators use wacom pen
Hi,
I have tried this on Maya 2019 and it works nice.
The next day I tried in Maya 2020.2, in the Advanced Editing I can not drag and scale the buttons manually (no little white dots around the button appear), can only edit them by the numbers in boxes on the right.
Hello!
Thanks for making DreamWall picker!
There is an issue I've been running into with different rigs:
After changing namespace for use with another character/rig, 99% gets changed correctly, but some picker controllers produce an error: Selection error: Some nodes exists more than once: <Controller names>
and not working correctly unless changed manually.
Version: 0.6.0 and earlier
Support nested namespaces when it is partially set on the picker.
Advanced Option Editor, should have
the Save and save As buttons,
should have a PickerTitle visible that is easy to change and see , and should also display and be able to change the Picker namespace , to keep everything a bit more organized .
The advanced editing window will appear and close really quickly the first time after restarting Maya. If I try to open it again, the window doesn't appear at all. Could you look into this? Thank you.
Hi, I just download the 2022 version, I am using it on maya 2017, and when I start creating a picker, I find that I was not able to
use the " add background item", I saved my image in both jpg and png, but the button was not able to detect those images. it only detects msi and mp4, I am not sure why.
This option would come in handy, for some of the pickers, when there are a lot of buttons that are scripts(to open tools not picking things), it would come handy to simply be able to lock the pan and zoom option of a UI so that when the main UI is resized, the entire button layout would simply resize accordingly to the main window, but always displaying all the buttons.
This way the user could make the picker ui very small and still have the ability to see and use the buttons, without loosing them around by accidentally middle mouse drag/roll, or F to focus.
I work constantly switching PC and, due to that, changing image paths every time I open Maya.
Is there any way you could implement ENV PATHS for the images? Would be really helpful.
If not, as AnimSchool does, can you keep the image as base64 in the maya scene?
some how the advance editor position of the image doesnt quite match the one in the window.
in advance editor position, ctrl + z undo multiple movement.
when i move the image frame, i have to re-center the image by toggleing the fill
Hi, I am uisng pen most of time for working, and I found that the alt-middle mouse button to zoom in zoom out is a bit too sensitive in the window, which is making the zoom in quite hard to use. Is there way to solve it?
With some long and complexe code, evaluation seems confused in the python namespace and loose some variable names.
Hello,
new background add in picker,will be in bottom of old background
v 0.6.0
when entering the edit mode(Ctrl + E), this error pops out, I'm using Maya 2020. Anyone could help? Thanks a lot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.