FormIt.Selection namespace.
Functions | |
json | GetObjectTypeFilter () |
Returns the current ObjectTypeFilter. | |
json | SetObjectTypeFilter (objectTypeFilter) |
Sets the current ObjectTypeFilter. | |
json | ClearSelections () |
Clears all of the selections. | |
json | AddSelections (aSelection) |
Add a list of ObjectIDs to the selections. | |
json | GetSelections () |
Get selections. | |
json | SetSelections (selections) |
Set selections. | |
json | SetPreSelections (firstPreselection, selections) |
Set pre-selections | |
json | HasPreSelections () |
Returns true if there are pre-selections. | |
json | GetFirstPreSelectedObject () |
Get the first pre-selection. | |
json | GetFirstSelectedObject () |
Get the first selection. | |
json | GetContextMenuObject () |
Get the object selected from the context menu click. | |
json | ClearPreSelections () |
Clear the pre-selected objects. | |
json | IsSelected (objPath) |
Check if the given object is selected. | |
json | SelectAll () |
Select all objects in the model. | |
json | HasSelections () |
HasSelections returns true is there are selections. | |
json | GetPreSelections () |
Get the pre-selections | |
json | CommitPreselections () |
CommitPreselections makes the pre-selections the current selections. | |
json | CompareSelections (selection1, selection2) |
Compare two selection sets to see if they are the same. | |
json | ToggleObjects (selections) |
ToggleObjects toggles the object selection- If they're in the list, it removes them, else it adds them. | |
json | ApplyMaterialToSelection (id, backside) |
Apply the material to selection through the JS API rather than module.ccall() for Web | |