"In this there is no measuring with time, a year doesnt matter, and ten years are nothing. Being an artist means: not numbering and counting, but ripening like a tree, which doesnt force its sap, and stands confidently in the storms of spring, not afraid that afterward summer may not come."

- Rainer Maria Rilke, Letter To A Young Poet

Direct questions at:
faulknermano1@yahoo.com

For best results / performance, update your LScript Plug-ins to the latest version.

 


You are in the USER-DEFINED FUNCTIONS Section.
Go to LSCRIPT Section.

 
 

(©2002 L. Ang)

.: NOTE ON USER-DEFINED FUNCTIONS :.
Some of these user-defined functions were taken by various authors, or at least by people whom I saw first using it. They are credited in the text file, though the actual code or algorithm used may or may not be actually theirs. Nevertheless this section is merely to increase the flow of useful information regarding writing LScripts.

Greetings. You are in The Spread.

 
 

 

VECTOR Funcs

<vector> convertForwardVector2HPB(normalizedVector)
:: computes for the Euler coordinates (HPB) of an inputted vector
:: credit: Ernie Wright

<vector> rotateVec_PrincipalAxis(vector,axis,angle)
:: rotates a given vector along one of the three principal axes.
:: credit: Carl Looper

<3*3 matrix> rotateVec_CustomAxis(axis,theta)
:: rotates a given vector along a vector-defined axis.
:: credit: Sang Hoon

 

SPLINE Funcs

<vector> Curve(), BezierFunc() (a.k.a spline_func)
:: solves for a point location along a spline given a parameterization value.
:: credit: Yahma (dproject.com)

 

STRING CONVERSION Funcs

<int> hex2num(string)
:: converts hex values to a numbers.
:: credit: Ernie Wright

<int> num2hex(string)
:: converts numbers to hex values.
:: credit: Ernie Wright

<string> searchAndReplace(originalString,searchString,replaceString)
:: searches and replaces text in a string; (LScript version 2.x only)

 

MISCELLANEOUS Funcs