Skip to content
Jigwright
HullForge docs

Set Struct Member

Rename a member, change its type, or change its default. A RENAME is safe because members are keyed by GUID. A TYPE CHANGE is not: every value of that member everywhere is reset.

hf_set_struct_memberWrite

Arguments

NameTypeDescription
memberreqstringMember name or GUID from hf_describe_struct.
structreqstring
accept_data_lossboolean
= false
Required for a type change.
defaultstring
forceboolean
= false
Edit even when the asset cannot currently be saved - for example when revision control is configured but disconnected. The change will be made in memory and WILL BE LOST unless the underlying problem is fixed before saving. Only pass this if you intend to discard the work or fix the connection first.
rename_tostring
typestringNew type. Resets every existing value of this member.

Nearby in Data assets:

All 25 tools in Data assets — 16 more not listed here.