There are many logic related with such nodes, I want to figure it out
With python , all AnimNode_XXX can be found,
But I cannot get these nodes (Property Access,Get Curve Value) with python.
I search around Net & AI , but fails, So is there any way to achieve this (without C++)
Here is the code I have tried, but not work
def find_nodes():
anim_bp_path=“/Game/Test/Anim/ABP_ExamC”
anim_bp=unreal.EditorAssetLibrary.load_asset(anim_bp_path)
all_graphs=unreal.AnimationLibrary.get_animation_graphs(anim_bp)
print(f’Number of All-graphs:{ len(all_graphs)}')
for graph in all_graphs:
graph_name=graph.get_name()
graph_class=graph.get_class().get_name()
print(f'Graph Class:{ graph_class} Name:{ graph_name}')
#nodes=graph.nodes
#nodes=graph.get_nodes()
#nodes=nodes = unreal.BlueprintEditorLibrary.get_blueprint_asset_graph_nodes(anim_bp, graph)
#nodes=unreal.AnimationLibrary.get_nodes_of_class(anim_bp, unreal.AnimGraphNode_Base, True) not my case(eg. K2Node_CallFunction)
#nodes=unreal.AnimationLibrary.get_nodes_of_class(anim_bp, unreal.K2Node_CallFunction, True)
#nodes = unreal.BlueprintEditorLibrary.get_all_nodes_in_graph(graph)
for node in nodes:
node_class=node.get_class().get_name()
if node_class=='K2Node_CallFunction':
print(f'K2Node_CallFunction')
