new Selection()
Members
-
objects :THING.Selector
-
获取当前帧选择集中的物体集合
Type:
Example
var sel = app.selection.objects;
-
previousObjects :THING.Selector
-
获取上一帧选择集中的物体集合
Type:
Example
var sel = app.selection.previousObjects
Methods
-
clear()
-
清空选择集
Example
app.selection.clear();
-
deselect(object)
-
将物体从选择集中取消
Parameters:
Name Type Description object
THING.BaseObject 物体
Example
app.selection.deselect(obj);
-
has(object) → {Boolean}
-
查询某物体是否在选择集中
Parameters:
Name Type Description object
THING.BaseObject 物体
Returns:
- Type
- Boolean
Example
app.selection.has(obj);
-
isChanged() → {Boolean}
-
检测当前帧选择集是否发生改变
Returns:
- Type
- Boolean
Example
app.selection.isChanged()
-
select(object)
-
将物体加入到选择集中
Parameters:
Name Type Description object
THING.BaseObject 物体
Example
app.selection.select(obj);