Materials List for Workspace
- clintonman
- Captain
- Posts: 5432
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Materials List for Workspace
Inspired by the modelspace Material List tool
Displays a list of D3D materials with controls for naming and editing the material and selecting the objects that use the material
Naming the materials is useful for exporting out of trueSpace
The list is most useful for scene instanced materials and scenes that don't have a large number of renderable objects. It can be used to manually delete orphaned scene instanced materials or load them into the material editor to be assigned to an object.
Color coding is white=not instanced, green=scene instanced, yellow=instanced orphaned and black is no material.
http://clintons3d.com/plugins/truespace ... slist.html
Re: Materials List for Workspace
Any idea how to stop these errors?
Steps:
Add 3 Cubes
Open Material List
Use [ S ] to Select
Delete it
Use [ S ] to Select will throw an error
Steps:
Add 3 Cubes
Open Material List
Use [ S ] to Select
Delete it
Use [ S ] to Select will throw an error
Same with [ E ] ] D] and [ Name ]ERR Source object: Error: Unspecified script error Line: 59, Char: 1 Script text:
- clintonman
- Captain
- Posts: 5432
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Materials List for Workspace
Thanks,
Dec 19 updated with node exists checks, new installer uploaded.
Re: Materials List for Workspace
I think you forgot a return
Why not run the update and no Alert?
ERR Source object: Error: Unspecified script error Line: 63, Char: 1 Script text:
Code: Select all
if(!Node.Exists(allMaterials[index + MaterialsListStartIndex])) {
System.Alert("The Materials List is out of sync. Press the Update button");
}
Why not run the update and no Alert?
Code: Select all
if(!Node.Exists(allMaterials[index + MaterialsListStartIndex])) {
//System.Alert("The Materials List is out of sync. Press the Update button");
Activity.Run('Scripts/CustomCommands/Materials List/update')
return
}
- clintonman
- Captain
- Posts: 5432
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Materials List for Workspace
Oops, added returns and uploaded new installer.trueBlue wrote: ↑20 Dec 2023, 02:52 I think you forgot a returnERR Source object: Error: Unspecified script error Line: 63, Char: 1 Script text:Code: Select all
if(!Node.Exists(allMaterials[index + MaterialsListStartIndex])) { System.Alert("The Materials List is out of sync. Press the Update button"); }
Why not run the update and no Alert?Code: Select all
if(!Node.Exists(allMaterials[index + MaterialsListStartIndex])) { //System.Alert("The Materials List is out of sync. Press the Update button"); Activity.Run('Scripts/CustomCommands/Materials List/update') return }
Re: Materials List for Workspace
I think the E, D, and Name buttons should select the object first
First slot
First slot
Code: Select all
matsFS.SelectMaterialItems(0);