Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Showcase® / General / Material Replacement Mapping Algorithm Syntax
  RSS 2.0 ATOM  

Material Replacement Mapping Algorithm Syntax
Rate this thread
 
63781
 
Permlink of this thread  
avatar
  • decastle
  • Posted: 23 January 2012 02:53 AM
  • Total Posts: 3
  • Joined: 02 January 2012 07:24 AM

I am trying to establish a reusable color replacement algorithm.  This would exchange my inventor colors for designated Showcase materials.  I am able to get the algorithm to work.  The problem comes when I want to have the mapping algorithm assign certain showcase extended materials.  I can assign materials from the folders with singular names (Plastics, Metals and so on) but I am unable to assign materials from the folders that contain a dash with in the folder name, designating a subcategory (Glass - Architectural, Metal - Steel, Paint - Metallic).  I think this might be a problem with syntax with the mapping algorithm.
This is the general form for replacing a material by name:

[Names Example2]
Type: Names
Something: Metal::Gold
OrOther: Wood::Maple-Hi Gloss

An example of what I am trying to get to work:

Black: Paint - Metallic::Metallic Paint Black Satin

I can get my material to replace, so I believe the syntax error exists to the right of the first :

If anybody has any idea about the syntax issue, or if these materials are not accessible in this fashion I would love to hear about it.  For now, I will keep trying different syntax (location of spaces, other small changes) and hopefully I will find the error.
Dan



Replies: 0
avatar
  • decastle
  • Posted: 23 January 2012 03:25 AM

I found the answer!!!

the general form of these folders as listed is “Category - Subcategory”
I looked at the naming of the source folders and tried “Category_Subcategory”
This is the correct syntax and works fine.

ex.

Black: Paint_Metallic::Metallic Paint Black Satin

I hope this helps somebody out.



Replies: 0