Adding description to properties through .xaml files

Hi everyone,

I’ve been experimenting with creating my own Python add-ons, and while the process of building the add-ons is going smoothly, I encountered an issue when trying to add descriptions to the properties within the add-on.

Following the template from the help documentation ( Creating a Python Add-on (visualcomponents.com)), I understand that I need to include a .xaml file for property descriptions. I created this file, and when I tested it with descriptions for two boolean properties, everything worked as expected.

However, when I added a third property description, none of the descriptions for any of the properties were displayed. I tried comparing my .xaml file with others from Visual Components, but I couldn’t identify any significant differences that might explain the issue.

Has anyone encountered this before or know what I might be doing wrong?

Here are the results:

Code with only 2 properties and the result in Visual Components:


image

Code with 3 properties and the result in Visual Components:


image
(You can’t see my cursor, but it’s on the ‘TestmodeActive’ property)

Any guidance would be much appreciated!

Thanks in advance.

Check the VC error log file from under AppData.

Are your property names correct? Could there be a name conflict such that you the key value is not unique across the whole application?

1 Like

I couldn’t find any error log file in the AppData folder :sweat_smile:

Regarding the property names, you just need to copy them as is, right? I even tried using random names, but that didn’t work either.

1 Like

I realized I was checking the wrong AppData folder—my bad!

After looking at the correct log files, I found that I missed a : on lines 23 and 24 :face_with_spiral_eyes:

Thanks for the help!