Notifications
Clear all

[Closed] Script for custom Xref Import

Hi everyone!

I need a little help to build the following script.

1)STATE:
I’ve created different folders in my HD in which I’ve put different 3d models; they are subdivided in this way:

Collection1
Model1
Material1
Material2
Material3

Model2
Material1
Material2

Model3

Collection2
AS ABOVE

In few words there are a lot of collection, each collection has different model kinds, and each model kind has different materials.

2)TARGET:
My target is to build a script thanks to which I can open a Floating Window with 3 different “dropdownlist” or “listbox”.
On the first listbox I have all the Collection, then when I select a collection on the second listbox appears all the models, then when I select the model on the third listbox appear the material, finally once selected the material too I click “OK” button and into the scene is Xreffed the correct scene containing the “collection/model/material” I’ve choosen

Esthetically I suppose it should be something similar:


rollout a "New"
 (
  listbox collection "Collection" items:#("","Caio","Tizio","Cesare")
  across:3
  width:150
  
  listbox models "Models" items:#("One","Two","Three")
  width:150
  
  listbox materials "Materials" items:#("Wood","Plastic","Metal")
  width:150
  
  button ok "OK"
  )
  createDialog a 600 300

I thank you really much for any kind of help.