The problem about the spare port of Null and AbstractControl

   74   0   0
User Avatar
Member
1 posts
Joined: 10月 2025
Offline
How to find and connect the spare ports of null and AbstractControl nodes in APEXSCRIPT?
I tried to use FindPort, FindOrAddPort, RenamePort and other ports to find the standby port of a node, but it didn't work. How can I use scripts to achieve the effect shown in the figure? Another question is that multiple data can be merged into an array. How can I operate if I want to decompose an array and output multiple data ports?



Attempts made (not beautiful):
_, _, _, abs_parm_point_0_ctrl_weights, abs_parm_point_1_ctrl_weights, abs_parm_point_2_ctrl_weights, \
abs_parm_point_3_ctrl_weights, abs_parm_point_4_ctrl_weights, abs_parm_point_5_ctrl_weights, \
abs_parm_point_6_ctrl_weights, abs_parm_point_7_ctrl_weights, abs_parm_point_8_ctrl_weights, \
abs_parm_point_9_ctrl_weights, abs_parm_point_10_ctrl_weights, abs_parm_point_11_ctrl_weights, \
abs_parm_point_12_ctrl_weights, abs_parm_point_14_ctrl_weights, abs_parm_point_15_ctrl_weights, \
abs_parm_point_16_ctrl_weights, abs_parm_point_17_ctrl_weights, abs_parm_point_18_ctrl_weights, \
abs_parm_point_19_ctrl_weights, abs_parm_point_20_ctrl_weights, abs_parm_point_21_ctrl_weights, \
abs_parm_point_22_ctrl_weights, abs_parm_point_23_ctrl_weights, abs_parm_point_24_ctrl_weights, \
abs_parm_point_25_ctrl_weights, abs_parm_point_26_ctrl_weights = apex.rig.abstractControl(
    
    __spare____out=[
        'point_0_ctrl_weights', 'point_1_ctrl_weights', 'point_2_ctrl_weights', 
        'point_3_ctrl_weights', 'point_4_ctrl_weights', 'point_5_ctrl_weights', 
        'point_6_ctrl_weights', 'point_7_ctrl_weights', 'point_8_ctrl_weights', 
        'point_9_ctrl_weights', 'point_10_ctrl_weights', 'point_11_ctrl_weights', 
        'point_12_ctrl_weights', 'point_14_ctrl_weights', 'point_15_ctrl_weights', 
        'point_16_ctrl_weights', 'point_17_ctrl_weights', 'point_18_ctrl_weights', 
        'point_19_ctrl_weights', 'point_20_ctrl_weights', 'point_21_ctrl_weights', 
        'point_22_ctrl_weights', 'point_23_ctrl_weights', 'point_24_ctrl_weights', 
        'point_25_ctrl_weights', 'point_26_ctrl_weights'
    ],
...
)

Finally, I don't know how to deal with the display sorting problem:

Attachments:
abs_ports.png (230.9 KB)
sort_vis.png (1.1 MB)

  • Quick Links