Select Object Extension
version 0.11 Beta
Actions
This extension has no actions.
Conditions
Select first X objects
Selects the first X number of objects selected by the mmf runtime, these are typically the most recently created at runtime or the frontmost objects at edit-time.
Supports Qualifiers!
Select last X objects
Selects the last X number of objects selected by the mmf runtime, these are typically the rearmost objects at edit-time or the earliest created objects at runtime.
Supports Qualifiers!
Select object by index
Selects the object at a specific index from those selected by the mmf runtime.
Supports Qualifiers!
Re-select all objects
Resets mmf's selection to cover all objects of this type.
Supports Qualifiers!
Compare to n# of selected objects
Camparison against the number of objects of a specific type selected by the previous conditions.
Supports Qualifiers!
Select object with highest Alt. Value
Selects a single object with the highest value for the chosen Alt. Value. If several have the same value, it will pick the first one it finds.
Supports Qualifiers!
Select object with lowest Alt. Value
Selects a single object with the lowest value for the chosen Alt. Value. If several have the same value, it will pick the first one it finds.
Supports Qualifiers!
Select frontmost object
Selects the object displayed furthest in front of all objects of a certain type.
Supports Qualifiers!
Select rearmost object
Selects the object displayed furthest behind of all objects of a certain type.
Supports Qualifiers!
Expressions
numSelectedByName("Select Object Extension", "Other Object")
Counts the number of objects with the name "Other Object" selected by the conditions for this event. Returns 0 if no object with the name exists.
numSelectedByFixedV("Select Object Extension", Fixed("Other Object"))
Counts the number of objects of the same type as fixed value selected by the conditions for this event. Returns 0 if no object with the fixed value exists.
This one may be prefered because if "Other Object" is renamed this code still references the same object, whereas the "by name" version will still look for the old name.
NameFromFixedV$("Select Object Extension", Fixed("Other Object"))
Retrieves the name of an object from its fixed value. Returns "" if no object with the fixed value exists.
Most useful if the fixed value is from a qualifier so you don't know the specific kind of object already...
Known issues
Doesn't work in a "Mouse clicked on object" event
This object's conditions don't work in a "mouse clicked on object" event (maybe other triggered conditions(red) too), because these events trigger repeatedly, once for each object, instead of triggering once with all appropriate objects selected.
The exception is Re-select all objects
, which works but triggers the actions for every object repeatedly, one time for each object the condition is triggered for.
To workaround, use the following:
Mouse clicked + mouse is over object + select first/last object -> do whatever
Nothing I can do about this, it's a problem with how these triggered conditions work and it won't be changed.
Qualifiers
Everything should work with qualifiers now, but may be buggy.
Support for qualifiers requires extra code (more than the same again as supporting regular objects), which means more room for bugs.
Notes
None?
Changelog
0.11 Beta
Added NameFromFixedV$()
Qualifier support for the Select last X objects
.
0.10 Beta
Fixed Select frontmost object
and Select rearmost object
so that they don't crash when used with scrolling and "innactivate if too far from window".
Qualifier support for the Select frontmost object
and Select rearmost object
.
0.0.9 Beta 4
Compatibility with HWA and Unicode
0.0.9 Beta 3 HWA
First attempt at HWA compatibility
0.0.9 Beta 3
Added Select object by index
(with qualifier support)
Fixed the qualifier support for Select first X objects
, so it actually selects anything.
0.0.9 Beta 2
Qualifier support for the Select first X objects
, Re-select all objects
and Compare to n# of selected objects
0.0.9 Beta 1
Compatibility fix with the new version of MMF2 (b244). The extension should now refuse to load in an earlier build of MMF2.
Qualifier support for the Select with highest Alt. Value
and Select with lowest Alt. Value
0.0.8
Compatibility fix with the new version of MMF2 (b243)'s alterable values.
0.0.7
Fixed so that it selects the right kind of object inside a sub-app.
0.0.6
Added Discard first X objects
, Discard last X objects
and Compare to n# of selected objects
conditions.
Reorganised the folder layout to the same as mmf2.
Made the help button for the object work.
0.0.5 beta
Added Count Selected Objects (Name)
and Count Selected Objects (Fixed Value)
expressions
Changed the example to have a separate page for Select frontmost object
and Re-select all objects
Changed the method used to detect if an object is selected or not to one compatible with expressions
Added the extension's icon to all conditions
0.0.4 beta
Changed the extension icon to something a little better
Added Select frontmost object
and Select rearmost Object
Changed the example to use Select frontmost object
Organised the conditions into sub-menus
0.0.3 beta
Added Select last objects
and Re-select all objects
Fixed Select first objects
to tell mmf the correct number of selected objects instead of always 0
Renamed the extension from "Object Select Object" to "Select Object Extension"
Added an icon
Added the example
Removed note about the conditions being negatable, they weren't and aren't
Added beta warning popup
0.0.2 alpha
Changed Select first object
to Select first X objects
Added Select with lowest Alt. Value
Fixed Alt. Value conditions to work with all objects, not just actives.
Added docs file
Added extension info (ie author, description, etc.).
0.0.1 alpha
First version.
Contained the Select first object
and Select with highest Alt. Value
conditions
Contained no actions
Contained no expressions