Sprites (Temo for Viz4)
Copy scriptThis button pulls the latest version
from my GitHub repo!
Analogue of original Vizrt Temo plugin, only for Viz4 fusion material. Work as a traditional sprites pleer.
Analogue of original Vizrt Temo plugin, only for Viz4 fusion material. Work as a traditional sprites pleer.
Viz version allows you to choose what is changed by this script. Viz 3 change legacy texture plugin. Viz 4 change texture params into fusion material.
Numbers of tiles (vertical and horizontal) cuts the image as much as it has frames accordingly.
Selection mode gives classic number mode where you change the index of the frame, name where you can name each cell and show by name, without index.
Main axis works only with number mode. It changes the direction of the calculation order. "X" is the classic one.
Show tile number works only with number mode. It is a cell selector.
Crop X / Crop Y define how much we cut each cell in the percentage of the size.
Lock crop allows you conveniently change crop X and Y by one number.
I've created this script as an analogue of original Vizrt build-in plugin "Temo". But only for Viz4 fusion material. It implements the classic "sprite" technique for graphics engines.
Disclaimer: This script changes texture scaling and position via "SendCommand" function. I know that it isn't a good way, but for the current VizArtist 4.2 version, it's a single option to do this, unfortunately. If Vizrt developers will allow changing these parameters via normal script object — I'll upgrade my script this accordingly.
I did not repeat only the standard behavior of Temo. Also, I implement a few my improving ideas:
After adding these improvements I decided to make "Viz 3" mode :)
Here you find two different fields.
Names allow you to give names to all cells. Rows are separated by "new line". Columns are separated by "|" char.
Show name is a cell selector. Like "Show tile number" but only by a string.