-
Notifications
You must be signed in to change notification settings - Fork 39
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
Refactor storage #48
base: main
Are you sure you want to change the base?
Refactor storage #48
Conversation
Hey ! That looks nice at first stare. |
Please, no rush, i will think of details more, and i have to do a load testing. |
32b6a74
to
3b3a986
Compare
so it is about 20 times difference, it is fine for me at this stage (200x would be something sad), as i will profile loading in case it may be optimized. |
Hi Konstantin, Less important (as far as it is still WIP), data are easily out for sync: |
FYI: i tested on both Maya versions: 2020.3 Py2, 2022.3 Py3 (Win10) |
Hi, sorry for late reply. Yes this was first attempt to get desired data storage, i see several ways to optimize this. First one is to calculate json diff and store it in animation scene. This way an animator would 1. override referenced picker data. e.g. move button group or change color, add his own buttons 2. remove data from scene to reset picker data. 3. it have to be faster to save and load as there will no many api calls. I think api calls are the bottleneck, raw python operations (comparing dicts, serialize/deserialize) are always fast. I have no clue when i will have time to get it. |
Hi, Hope you are safe and well. |
3b3a986
to
a940746
Compare
a940746
to
7149c0d
Compare
I ve pushed another idea with separate node for each picker, so they would be easily exported and imported and picker node's namespace used for picker data so nodes would be immediately selected after referencing scene with pickers. On editing picker will store source picker node name so only edited version loaded. It looks as follows: Not sure if it is best setup, i will think about this more. What i realize is that we do not need actually deep difference as it should not work with expected behavior. Detaching full picker is fine. It should only have option to revert to referenced state. |
So @luckylyk i still thinking on empower DwPicker in maya referencing pipelines.
So my suggestion is to change the way you cleanup referenced pickers and to add option to reload referenced pickers. What do you think? |
|
Hi @luckylyk, here is a draft for what we told at #44, i will still thinking about details, but i got it working (on boxes) and if you are interested you may look at.