Use CSS Variable instead of Python Script

Back to the original post.

I want to bind a python script. such as below.

This I only set once and not tend to change. Thus this does not need to be triggered in runtime.
I set 1 in the expression.
But I ran into issues where the parameter will be set to null.

Is there a property I can monitor that change during startup, to use it to trigger this script?