0
$\begingroup$

Usually // means "relative to the current directory" in Blender. However, when using it in this StringProperty in an addon that I'm creating, I'm getting this warning.

image_showing_error

Any thoughts on how to handle it?

Thanks!

$\endgroup$

1 Answer 1

2
$\begingroup$

When declaring the property, you probably have to let Blender know it supports relative path.

From the documentation you need to tell it is_path_supports_blend_relativeis True, as in:

StringProperty.is_path_supports_blend_relative = True 
$\endgroup$
1
  • $\begingroup$ Mmm, I like that! Maybe I'm missing something, but it's telling me that it's a readonly property... Thanks for the response! $\endgroup$ Commented 6 hours ago

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.