Notifications
Clear all

[Closed] Material change

Hi,
can you please help me. I have to get this(from page 8) into a script but i don’t now how.
can anyone help me???

raphael

4 Replies
1 Reply
(@rustyknight)
Joined: 1 year ago

Posts: 0

It would also be very useful if it were in english, sorry

Shane

 JHN

Please describe a bit better what it is you want to do, and tell us what you tried already.

-Johan

Hi,
sorry but it is very difficult to explain it in english.
In the script i have to change the material type but i have to keep the maps(the diffuse color).

I tried this before to get the materialname from the Multi/Sub-Object and the names from the maps

ausgabe=""
 ausgabe2=""    
     
 for m in sceneMaterials do
 (
   if classOf m == multiMaterial then
   (      
     ausgabe2=ausgabe2+m.name+"
"
     
     for subM in m.materialList do
     (      
       ausgabe=ausgabe+subM.name+"
"                  
     )
   )  
 )    
 
 messagebox(ausgabe2)
 messagebox(ausgabe)

But now how can i change the Multi/Sub-Object material into a for example FlightSimX material?
I hope you can understand and help me.

Hi,
sorry but it is very difficult to explain it in english.
In the script i have to change the material type but i have to keep the maps(the diffuse color).

I tried this before to get the materialname from the Multi/Sub-Object and the names from the maps

ausgabe=""
ausgabe2=""    
    
for m in sceneMaterials do
(
  if classOf m == multiMaterial then
  (      
    ausgabe2=ausgabe2+m.name+"
"
    
    for subM in m.materialList do
    (      
      ausgabe=ausgabe+subM.name+"
"                  
    )
  )  
)    

messagebox(ausgabe2)
messagebox(ausgabe)

But now how can i change the Multi/Sub-Object material into a for example FlightSimX material?
I hope you can understand and help me.