UNPKG

polygonjs-engine

Version:

node-based webgl 3D engine https://polygonjs.com

27 lines (26 loc) 927 B
/** * The copy expression allows the copy SOP node to evaluates its input graph multiple times, and vary its result each time. * * @remarks * It takes 2 or 3 arguments * * copy(<input_index_or_node_path\>, <default_value/>, <attribute_name/>) * * - **<input_index_or_node_path\>** is a number or a string * - **<default_value\>** is a number * - **<attribute_name\>** is the attribute that will be stamped * * ## Usage * * - `copy('../copy1', 0, 'i')` - returns the index of each evaluation * */ import { BaseMethod } from './_Base'; import { MethodDependency } from '../MethodDependency'; export declare class CopyExpression extends BaseMethod { protected _require_dependency: boolean; static required_arguments(): string[][]; static optional_arguments(): string[][]; find_dependency(index_or_path: number | string): MethodDependency | null; process_arguments(args: any[]): Promise<any>; }