Coder Social home page Coder Social logo

dwpicker's People

Contributors

c-morten avatar herizoran avatar kalemas avatar luckylyk avatar ndeebook avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dwpicker's Issues

Unhandled Exception - ValueError

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.

Maya Navigation

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?

does it have ability to collect multiple controls in one button?

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.

Bugs about headers and the new namespace switching feature

Hello, I have tested the new version and it is much better, but I found some new problems when making picker:

  1. When I modify the name or save or seve as the title, the modified version is always The first title,My selected title has not been modified, I think this is a bug;
  2. When I try the new namespace switching function, there will be a pop-up window for me to pop up the window again to let me modify the namespace, which should be a place to be improved

Picker disappeared inexplicably

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

Tab updates

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:

  1. If you reorder your tabs, close the picker, and reopen the tabs revert to alphabetical.
  2. If you delete a tab, and close the picker, it will reappear when reopened.

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

Close window editor

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.

https://youtu.be/YA-La32zl3A

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.

AUTO Refresh UI selection, option to turn it OFF and auto-Focus UI.

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)

ISSUE, Button Right Click Action, script, not working maya 2022

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.

Tell me about the problem I encountered.

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?

A few issues I've noticed after switching over to DreamWall picker from Animschool

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

Support buttons as both selector and command trigger

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.

new_version 0.4.0 not show picker

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
xx
version 0.4.0 reopen maya file ,picker not show
xxx

Align and Distribute items function

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.

Is there way to zoom in and out in advanced editing?

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.

Request to encode picker data in base64

Hi, we would like to request to change default picker data storage format from plain JSON to base64 encoded JSON.

  1. because it is compact notation in maya scene
  2. our antivirus check raises when it encounter 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?

picker attributes copy and paste function

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.

Cant save picker

Traceback (most recent call last):

File "C:/Users/fax/Documents/maya/2019/scripts\dwpicker\main.py", line 350, in call_save_as

self.update_namespaces()

TypeError: 'int' object is not callable

i can not save picker

Store pickers with referenced maya scene

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?

ISSUE Focus using the F button and focus centre.

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.

(nested ?) Namespace error

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.

It seems to mess up my default maya shortcuts a bit

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.

Namespace function enhancement suggestion

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!

xxx

Update checker

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.

'unicode' is not defined

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.

Error: NameError: file C:/Users/User/Documents/maya/scripts\dwpicker\optionvar.py line 59: name 'unicode' is not defined

Im using Maya 2022, Win10.
Any solution to this?

Cheers.

Picker Close icon suggestion

Hi,
Can hide the closed icon and put it in the menu bar? When switching pickers, it is easy to click the close icon by mistake, and generally after opening a picker, closing a picker is also not a frequent operation

xx

How do I check how many background images is in my file?

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.

Ability to lock the editing of a picker

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.

copy and pasting

Great tools, thanks for developing this, i have a few issue working with it tho

  1. copy and pasting hex code for color does not apply
  2. copy and pasting element reset some attribute, ie show boarder
  3. would be great if there's a method for loading files so i can create a custom shelf that will load everything up

appreciate the work

Wacom pen Scale View issue

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

not fully working on maya 2020.2?

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.

Selection error: Some nodes exists more than once

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

advanced editing not functioning for maya 2022 mac

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.

can't use add background item

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.

Ability to lock the view pan and zoom of the viewed picker

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.

preference window can not open

When I start Maya and open the dwpicker window for the first time, I can open the preference window, but when I fix dwpicker in Maya's interface, clicking again to open the preference window has no response.
test

Environment paths for images

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?

advance editor

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

Mirroring Widget

Hello guys,
This is just a suggestion for enhancement.
It would be better if there was a dialog Search and Replace prompt after clicking the mirror button.
This is an example from the mGear Anim Picker.

DUPLICATE AND MIRROR

Can not enter the edit mode

Traceback (most recent call last):

File "C:/Users/wangyan27/Documents/maya/2020/scripts\dwpicker\designer\editarea.py", line 163, in paintEvent

self.paint(painter)

File "C:/Users/wangyan27/Documents/maya/2020/scripts\dwpicker\designer\editarea.py", line 170, in paint

shape.draw(painter)

AttributeError: Shape instance has no attribute 'draw'

when entering the edit mode(Ctrl + E), this error pops out, I'm using Maya 2020. Anyone could help? Thanks a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.