UNPKG

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

13 lines (12 loc) 419 B
import { debug } from '@dsf/common/log'; import { action } from '@dsf/core/action-decorator'; import { BaseScript } from '@dsf/core/base-script'; import { info } from '@dsf/helpers/message-box-helper'; @action({ text: 'Hello World' }) class HelloWorldScript extends BaseScript { protected run(): void { debug('Hello World!'); info('Hello World!'); } } new HelloWorldScript().exec();