Select Object Extension
version 0.0.6
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.
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.
Discard first X objects
Discards the first X number of objects from the selection, these are typically the most recently created at runtime or the frontmost objects at edit-time.
Discard last X objects
Discards the last X number of objects from the selection, these are typically the rearmost objects at edit-time or the earliest created at runtime.
Re-select all objects
Resets mmf's selection to cover all objects of this type.
Compare to n# of selected objects
Camparison against the number of objects of a specific type selected by the previous conditions.
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.
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.
Select frontmost object
Selects the object displayed furthest in front of all objects of a certain type.
Select rearmost object
Selects the object displayed furthest behind of all objects of a certain type.
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.
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 others), 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 under the mouse.
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.
Doesn't work with qualifiers
Support for qualifiers requires extra code (about the same again as what's there now), and I haven't done it yet. Simple as that. If you attempt to use a qualifier it will always fail the condition, or return 0 for expressions.
Notes
None?
Changelog
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