Skip to content

Instantly share code, notes, and snippets.

@MastaMan
MastaMan / scrollingTexture.js
Created January 13, 2022 17:20
Scrolling Texture - Creation of the Lamborghini Urus project (WebGL-PlayCanvas)
var ScrollingTexture = pc.createScript('scrollingTexture');
ScrollingTexture.attributes.add('materialAsset', {
type: 'asset'
});
ScrollingTexture.attributes.add('speed', {
type: 'vec2'
});
-- Turn On API usage
::MODEL_PACKER_USE_API = true
-- Run script Model Packer in hidden mode
script = (getDir #temp) + @"\ModelPacker\ModelPacker.mse"
try(fileIn script) catch()
-- Get API
api = ::MODEL_PACKER_API()
-- Choose preset
/*
This code part of 3DGROUND Model Packer software!
With this code example, you can package multiple models from a selected folder.
API available from Model Packer 1.4.4
*/
macroScript openQuet
category:"[3DGROUND]"
toolTip:"Open"
buttontext:"Open"
Icon:#("UVWUnwrapView", 17)
(
fn openQuetFile = (
SetQuietMode false
checkForSave()
SetQuietMode true
REM This code part of 3DGROUND Model Packer software!
REM With this batch file you can find 3d models by search words and open existing folders.
REM Just run this batch file and enter words separated by spaces then press Enter.
@echo off
cls
:init
cls
set /p search="Enter search keywords (separate by space): "
<?php
/*
This code part of 3DGROUND Model Packer software!
With this code example you can extract index.xml file from uploaded arhive.
Then parse index.xml with SimpleXML in PHP.
On your server must be activated this libs:
- ZIP library!
- Simple XML librarty!
*/
function myFunction() {
// Get all files in Drive
var files = DriveApp.getFiles();
// Delete every file
while (files.hasNext()) {
var file = files.next();
Logger.log('Deleting file "%s"',
file.getName());
// Delete File
::
:: Bactch Archivator
:: MastaMan
:: http://3dground.net
::
ECHO OFF
CLS
ECHO This model ready to place?