Skip to main content
100%

Gist e23654b5d95e55cf3eabdf289fc087a3

✓ Published0🌍 Public
UUtopiah
Last edited May 5, 2020
Created on May 5, 2020

This example shows a script that exports 3D objects from a Spoke group to Hubs by generating a list of Poly asset URLs. It iterates over child objects of the first object whose name contains “Export”, logging each child’s position, scale, and rotation to the console while constructing its corresponding Poly view link. The code uses Three.js object properties (`object3D.position`, `object3D.scale`, `object3D.rotation`) and the browser’s native `console` API, with `objects3DFromPartialName` as a custom helper for scene traversal. The data source is the Spoke scene’s object hierarchy, and the output is a JavaScript array of Poly URLs for import.

AI-generated description

Similar vizzes