Resource link path lost in the .blender file #1
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
issue
enhancement
issue
not-bug
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Francesco-Bellini/custom_templates_addon#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I lost all resource link paths in my .blender files when adding them to the menu using your addon. When I open my .blender file manually, the resource link paths work fine, but when I open the .blender file using your addon, all the paths no longer function. To describe the error, I can say it's like moving a file from drive C to drive D, which causes the paths to be incorrect.
Hi @Sun19!
Thanks for using the add-on, and for your report!
I think this is due to the fact that, by default, blender use relative paths (
//
paths, relative to the .blend file location).So, when you open it as a template, initially there isn't a path at all, and if you save it in a different location than the template, those paths will not match the resources.
As a solution (and i will take care of update my README and wiki to advise about this asap), you can edit your template project, so that all paths became absolute (don't worry; you can do this with one click only, for all resources).
With absolute paths, your resources will work even when the project it not saved yet.
To do so, you can:
File > External Data > Make Paths Absolute
Once this is done, the template should work without any problems.
Let me know if you are able to solve the problem this way.
P.s. As soon as i have some time, i will check if i can give an option, while adding templates in the list, in order to automate this process (optionally). So users don't have to take care of doing this on their templates.
In case, i will add this feature in the next release!
Thank you for your prompt support, I have applied
I hope that in the next update, you will make this process more automatic and easier.
After some testing and tries, seems like i found a solution to automate this, @Sun19.
It's currently WIP, but should be released very soon in
1.6.0
. I just need to test it a bit more, and i want to try it also on Linux and Mac OS to ensure it's working just fine, on all platforms.You can read something more in the 1.6.0 milestone, since the implementation is almost done.
I am very happy to receive your message. I am currently using Blender 3.6. I really hope you continue updating to make it compatible with various Blender versions.
This is based on the operator
File > External Data > Make Paths Absolute
, and i see the operator is there also on 2.83 (which is my lower supported target), so there shouldn't be any problems.As usual i will release the legacy edition alongside, and your Blender version will be covered 👍
On a parallel track, i also opened a new proposal on Right Click Select.
Basically, instead of updating the original .blend file, it would be nice to transform the paths on the run, only when opening the template.
This way we wouldn't need to actually update the files.
I hope it will be implemented in some future, so this will be way more fast and less intrusive than my implementation. We'll see...
In the process of using it, I’ve discovered two additional errors caused by the addon. I’m not sure how to explain them in technical language, but I can describe the issues as follows:
Error 1: This relates to the video rendering section. When I render a video using a file opened through your addon, it often causes frame issues in the rendered video. At first, I didn’t think it was due to your addon, but after a few tests, I realized it was indeed the cause. When I open a file with your addon and render it, a few frames in my video appear in black and white. However, when I open the file manually, this issue does not occur.
Error 2: This occurs in the font selection section for text. When I open a file using your addon, and I add some text and select a font, I can only select a font once. If I try to change the font again, Blender crashes and exits the software.
This sound really strange to me...
I tried both on 4.2 and 3.6:
BW
while exporting images or videos. Once again, i have no idea how my add-on could be involved in turning anything black and white. Custom Template is totally inactive while working on/rendering a project.Are you able to detect some differences between the original .blend and the fresh-opened template?
Unless you can detect some specific changes between the template data and the original .blend template, and provide evidence, or if you have a demo file i could try, which you think might show me the problem on 3.6, i don't have much to work on right now...
As of now, i don't think that Custom Templates could be responsible about this 2 issues.
Let me know 👍
Hi @Sun19!
v1.6.0 has been released, and this include the legacy version!
Check the release, also new features are available!