On this page |
This class inherits from the QWidget
class.
Methods
__init__(parent)
Create a new AssetWorkingSetGallery
widget.
parent
Optional, set the widget’s parent to parent
.
setModel(model)
Sets the data model used by this instance of the AssetWorkingSetGallery
model()
→ QBstractItemModel
Returns the data model for this widget.
saveState(indented=False)
→ str
Save the state of the working set as string data. This is saved as JSON but the format may change over time.
indented
Set to true to add indentation to the JSON blob.
restoreState(statedata)
→ bool
Restore the state of the working set from a previous call to saveState
.
addAsset(item_uuid, insert_before=-1)
Add an asset to the working set.
item_uuid
The uuid of the asset to be added.
insert_before
The position where this asset will be added. If -1
then the asset is appended to the working set.
getAllIds()
→ list
of str
Returns all asset UUIDs in the current working set.
getSelectedIds()
→ list
of str
Returns all asset UUIDs in the current working set that are currently selected.
getCheckedIds()
→ list
of str
Returns all asset UUIDs in the current working set that are currently checked and available.
getActiveIds()
→ list
of str
Returns all asset UUIDs in the current working set that are “active”.
setAssetGallery(gallery)
Associate this widget with a specific AssetGallery
widget.
assetGallery()
→ hou.qt.AssetGallery or None
Returns the AssetGallery widget that this widget is associated with, if any.
Signals
activeChanged()
This signal is emitted whenever the list of active assets in the working set changes.