Use the shared action from other languages
The styling action is shared. These small examples all change the art Panel’s common radius to 24. That Panel’s corners use -1, so they inherit the new value.
PCA Script:
language 1.0let p = {"guiId":"style_lab","elementId":"art_panel","property":"radius","value":24}
change_gui_element_property(p)Lua:
local Script = {}
function Script.run(context)
await(ChangeGUIElementProperty({
guiId = "style_lab", elementId = "art_panel",
property = "radius", value = 24
}))
return true
end
return ScriptBASIC:
OPTION PCA3D BASIC 1.0
FUNCTION Run(context AS Dictionary)
DIM p = {"guiId":"style_lab","elementId":"art_panel","property":"radius","value":24}
AWAIT ChangeGUIElementProperty(p)
RETURN TRUE
END FUNCTIONUse numerical values for radii and opacity. Use strings for hex colors and asset IDs. A shader value is a Dictionary, not a string containing a pretend shader name.
