[Question]How to access view custom properties via scripting perspective?

Very simple example. I am using a docked view as header. As the new primary views open I want to use a startup script on the primary view to write to the session.custom.property that I have tied to the text on a label in the header view. I can get this to work.

But since I don’t want to hardcode the view title into each script, I would like to reference a custom property from primary view.

What is the syntax to access the custom properties from a view via scripting?

the answer is self.custom.propertyname

2 Likes