position_list

b = Box lengthsegs:1 widthsegs:1 heightsegs:1 length:65.7611 32.0211 height:39.8261 pos:[-15.6972,-84.9615,0] isSelected:on

 

b.pos.controller = position_list ()

b.pos.controller.Available.controller = Position_XYZ ()

b.pos.controller.Available.controller = tcb_position ()

b.pos.controller.Available.controller = bezier_position ()

 

lst = b.pos.controller -- the list controller

showInterfaces lst -- interface name is "list"

 

lst.getCount() -- count function

lst.count -- count property (read only)

lst.SetActive 3 -- set active function

lst.GetActive() -- get active function

lst.active -- active property

lst.cut 2 -- cut the second sub-controller

lst.paste 1 -- paste it to the top of the list

lst.delete lst.count -- delete the second to last sub-controller

lst.setName 2 "My Bezier" -- sets the name of the second sub-controller

lst.getName 2 -- gets the name of the sub-controller

 

原文地址:https://www.cnblogs.com/softimagewht/p/2199374.html