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

Allow switch from streaming to cached #121

Open
schroef opened this issue Feb 4, 2021 · 2 comments
Open

Allow switch from streaming to cached #121

schroef opened this issue Feb 4, 2021 · 2 comments

Comments

@schroef
Copy link

schroef commented Feb 4, 2021

Is your feature request related to a problem? Please describe.
Currently when a user wants to switch from streamed to cached. He/she need to import it again. This can be a destructive workflow. After checking filesize when saving. I noticed that due to fake users being set, file size can grow insane high

Describe the solution you'd like
Add option to simply switch from one to the other. It should not matter, data can be deleted or kept. Streaming if used with 0 is about the same after first play so no real difference. One could set it to stream to save blend file size. So when saving cache is emptied.

Describe alternatives you've considered
See above

Additional context

@neverhood311
Copy link
Owner

This feature is on my backlog, but I don't know whether it will make it into the next version.

After checking filesize when saving. I noticed that due to fake users being set, file size can grow insane high

If you need to delete a sequence, there's actually a dedicated button in the Object > Mesh Sequence > Advanced panel called Delete Sequence. This operator actually removes all meshes in the sequence from the file and from RAM. There's also an old feature that detects and cleans up "orphaned" meshes when the .blend file is opened.

@schroef
Copy link
Author

schroef commented Feb 6, 2021

Aha thats it indeed. Perhaps clear cache makes more sense? The delete sequence deletes everything. Say you done some work on the mesh but do want to make the file lighter when saving. THen clearing the cache would a nice option. Basically you just delete all the data mesh but keep the lists in the collection property so its still has the link. Then on reopening you could either manually initialize so it loads everything back into "memory".

I was just looking at the key mesh addon... I really have the feeling they took your addon as an example. ITs so nice man! I was working on an addon for Read i did download you addon 2 years ago but never looked at it then. This week i bumped my work up to 2.8 and expanded it a bit. After 2 days of fiddling around i did look at your addon and already baffled how well yours works. Only downside i see is when using things which change the mesh on data level. The playback in the viewport isnt that smooth. BUt yours has so much powerful tools i was thinking of adding. Here's a preview of what i got till i kinda gave up on it

I proposed to them to link to your addon, its much better and easier to use.

Concerning that switch mode. It wont be that hard to implement right? I mean basically its calling the operator which does the work from the start. THough i saw your work with collection properties and such to keep track of the files and such. That is perhaps a bit tricky in this case.

Youve done amazing work on this addon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants