dazscript-framework
Version:
The **DazScript Framework** is a TypeScript-based framework for writing Daz Studio scripts. It provides all the advantages of a typed language such as autocompletion, error checking, and method parameter documentation and hinting. The framework also inclu
9 lines (8 loc) • 333 B
text/typescript
export const restoreState = (splitter: DzSplitter, state: string) => {
if (!state) return
let base64Array = new ByteArray(state)
splitter.restoreState(base64Array.fromBase64(base64Array))
}
export const getState = (splitter: DzSplitter): string => {
return splitter.saveState().toBase64().convertToString()
}