Initial commit of VIZ 3D project

This commit is contained in:
balaji
2026-06-10 16:10:18 +05:30
commit 08aea85c2f
37 changed files with 13118 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
const puppeteer = require('puppeteer');
const path = require('path');
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
page.on('console', msg => {
if (msg.type() === 'error') {
console.log('PAGE ERROR:', msg.text());
} else {
console.log('PAGE LOG:', msg.text());
}
});
page.on('pageerror', error => {
console.log('PAGE EXCEPTION:', error.message);
console.log('STACK:', error.stack);
});
await page.goto('http://localhost:3000', { waitUntil: 'networkidle2' });
// Find the file input for import (usually has an accept=".glb,.gltf...")
const fileInput = await page.$('input[type="file"]');
if (fileInput) {
console.log('Found file input, uploading...');
await fileInput.uploadFile(path.resolve('C:/Users/900250.HCUDT299/Downloads/0.glb'));
await new Promise(r => setTimeout(r, 5000));
} else {
console.log('File input not found');
}
await browser.close();
})();