Object Table Default to All Selected?

I have an object table that contains RSOs from a filtered selection.

I want the table to always populate with the multi-select option where all of the RSOs in the table are selected by default.

Is there a way to do this in Workshop? Currently, the RSOs in the table are deselected by default, but you can select them all at once with the tick mark on the top left. This works, but I’d rather them all be selected by default and have the option to turn them all off at once. Any thoughts?

Hey @brianpatrick3, currently the object table only initializes state correctly from a subset of object set definitions.

Specifically, if you have a base object set (just an object type defined) as the object table input, and another object set set to the same object type, again just as a base object set, you can get the table to initialize to an “all selected” state.

There’s no great reason for this, though roughly it’s what is able to be initialized without loading the objects from the selected object set definition. In the future we may support more or all object set definition types as the selected object set.


Some other ways you may be able to hack around this involve using the “Set current value as default” option in the variable definition panel, along with a “Set variable value” event with the “Materialize object set on copy” option. You can run that event in edit mode to get an object set definition which is a static list of object rids from any object set (within the 10k limit), which the object table should properly initialize state for.

@evanj

Thanks for the quick response. Do you think you could elaborate on the first option? I’m not sure that I am following. Also, the table input is a dynamically changing object set. That is, it is the results of filtering on the RSO ontology.

Any suggestions would be greatly appreciated.

Thanks,

BP