nx_nxa_anim_selection_gate_t30.nx source
↩ module page · 37 lines · 2454 B
1// Original Knight stack-selection gate. No NXA artifact or live page writes.
2import "nx_nxa_anim_t30.nx"
3import "nx_readcap_lib.nx"
4func main()->i64 {
5 let n:i64=8769868
6 let fb:*u8=sys_mmap(n);let state:*i64=sys_mmap(24) as *i64
7 if rc_read_file_into("/tmp/nx_bind_source_t29.fbx" as *u8,fb,n,state)!=n||rc_complete(state)==0{return 4}
8 let G:*i64=sys_mmap(A_WORDS*8) as *i64
9 let graph:*FbxClipGraph=sys_mmap(__size_of(FbxClipGraph)) as *FbxClipGraph
10 let selection:*FbxClipSelection=sys_mmap(__size_of(FbxClipSelection)) as *FbxClipSelection
11 let rc:i64=a_load_selected(fb,n,463784955,G,graph,selection)
12 aw("selected_load_rc=" as *u8);an(rc);aw(" layers=" as *u8);an(selection.layers);aw(" nodes=" as *u8);an(selection.nodes);aw(" curves=" as *u8);an(selection.curves);aw(" scale_nodes=" as *u8);an(selection.scale_nodes);aw("\n" as *u8)
13 if rc!=0||selection.layers!=1||selection.nodes!=342||selection.curves!=1026||selection.scale_nodes!=114{return 5}
14 if G[1]!=1026||G[3]!=342{return 6}
15 var keys:i64=0
16 var k:i64=0;while k<G[1]{if G[A_CKT+k*4+1]!=G[A_CKV+k*4+1]{return 13};keys=keys+G[A_CKT+k*4+1];k=k+1}
17 if keys!=4893{return 14}
18 aw("selected_keys=" as *u8);an(keys);aw("\n" as *u8)
19 selection.layers=2;if a_selected_layers(selection)!=A_LAYER_BLEND_UNSUPPORTED{return 15};selection.layers=1
20 aw("PASS multiple-layer evaluation refusal (structural control)\n" as *u8)
21 var i:i64=0
22 while i<G[1]{let idx:i64=fc_find(graph,G[A_CID+i]);if idx<0{return 7};let o:*FbxClipObject=fc_object(graph,idx);if o.selected!=1||o.kind!=FC_CURVE{return 8};i=i+1}
23 aw("PASS only rig|Walk reachable curves loaded; no global cap increase\n" as *u8)
24 if fc_select(graph,0,A_MAGIC_2040,A_MAGIC_2040,selection)!=FC_MISSING{return 9}
25 aw("PASS missing stack refused\n" as *u8)
26 let slot:*FbxClipObject=fc_object(graph,0);let original:i64=slot.id
27 slot.id=463784955
28 let ambiguous:i64=fc_select(graph,463784955,A_MAGIC_2040,A_MAGIC_2040,selection)
29 slot.id=original
30 if ambiguous!=FC_AMBIGUOUS{return 10}
31 aw("PASS ambiguous stack identity refused; original FBX untouched\n" as *u8)
32 if fc_select(graph,463784955,A_MAGIC_2040,1025,selection)!=FC_CAPACITY{return 11}
33 aw("PASS selected curve overflow refused, never truncated\n" as *u8)
34 if fc_select(graph,463784955,A_MAGIC_2040,A_MAGIC_2040,selection)!=0{return 12}
35 aw("AUTHORED-CLIP selection=QUALIFIED affine_scale=UNSUPPORTED_BY_RIGID_BAKE animation_artifact=NONE scene_playback=UNQUALIFIED\n" as *u8)
36 return 0
37}