How to change priority of AnimationNodeStateMachineTransition by code?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Succoon

Hi,
so I have animation tree with few animations and transitions between them. At one point in my code I want to change priority of 2 transitions, but I have no idea how to access that parameters.
Ive tried adding script to that transition, where im using set_priority(i) function, but it doesnt work. So is there any way to get that transition object?
Im calling that script using this line:

var prio = load("res://scenes/player.tscn::32").new()
:bust_in_silhouette: Reply From: Succoon

Well I got it after all.

var prio = load("res://scenes/player.tscn::29")
prio.set_priority(0)

It was first thing Ive tried, but it didnt work, thats why I tried making another script. Probably mistyped load path.