Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

254
Views
Is there a better/shorter/cleaner way to gather scene objects and materials

Is there a better/shorter way to gather these scene objects and materials all at once in the case where I might have 50+ objects and mats? Maybe a loop and array or something but I'm not sure how to go about this.

// Scene Objects
const badge = await Promise.all([
Scene.root.findFirst('object0'),
Scene.root.findFirst('object1'),
Scene.root.findFirst('object2'),
Scene.root.findFirst('object3'),
Scene.root.findFirst('object4'),
])

// Objects Materials
const objectMaterial = await Promise.all([
Materials.findFirst('ObjectMat_0'),
Materials.findFirst('ObjectMat_1'),
Materials.findFirst('ObjectMat_2'),
Materials.findFirst('ObjectMat_3'),
Materials.findFirst('ObjectMat_4'),
])
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can use finds that support wildcards:

const badge = await Scene.root.findByPath('**/object*');
const objectMaterial = await Materials.findUsingPattern('ObjectMat_*');
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!