☰
 
Image

HS format userdata

By: hayasidist

Published: May 12 2023, 04:48

Downloads: 465
Converts a moho data type to a string for diagnostic / display purposes
Type: Utility Script Version: 0 Created for Moho: 12.0
Category: Script Writing
function HS_formatUserData (...)

--
-- ** version 1.1 Sept 9 2021
--
-- calling protocol: string = HS_formatUserData (v1, v2, ...vn)
-- where v is any expression or variable including moho userdata types or
-- {"string", v} where "string" is prefixed to the formatted v or
-- {"-string", v where "string" is suffixed to the formatted v
--
-- the data is interpreted as far as is possible which includes just recognising that the data item is (e.g.) an LM_Matrix
-- all the way through to (e.g.) formatting vectors as {x, y, z}
--
-- string is a "print ready" text string, with line breaks every 130-ish characters
--
--
This script, and all other scripts on this site are distributed as free software under the GNU General Public License 3.0 or later.

Don't know how to install scripts in Moho? ‼ View instructions ‼

Downloads History:

Last 30 days:

Last 36 months:

×