Thanks for your respond.
Is it possible to integrate expression into script ? As I understand this expression must be written to the layer(in my example Null) property(in my case it is position). But how to integrate it into my script ?
Thanks in advance.