You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fabian-flassig edited this page Aug 31, 2020
·
7 revisions
Assigns history information to a group or part created by the plugin. If a corresponding edit extension
is also defined in the same plugin, then the user can afterwards use the "Edit" button to invoke the edit extension for the given part or group. The edit extension, in turn, can retrieve the history information again with get_element_history.
pytha.set_element_history(element, history [,id])
element:set_element_history(history [,id])
Parameter
Type
Description
element
element_handle or {...}
A single element handle or a table of element handles
history
{...}
Table containing the history information
id
string
Optional: the id to select the relevant edit extension
Return values
none
Note:
The history table is saved recursively (including sub-tables). All table-entries are saved, where the key is a number or string and where the value may be a number, string, table, bool, element_handle.