Problem with the material editor script

Many thanks to both of you. I’ll go and try it out.

I cannot get this script to run successfully. I have selected multiple faces with the same texture. When I then run the script I get the message identifying the number of faces selected and asking if I want to edit them. However, when I click on ‘yes’ I always get the same error message:

Run-time error andquot;andquot;(-2147221230) occured in the script at line 92

If I choose the option to edit the script, it opens in an area where the following comment is nearby:

‘if an error occured then user doesn’t have MSComDlg available’

This sounds as though I may be missing an external system file. Can Alex, or anyone else, shed any light on this please ?

Ahhh. Now that is interesting! I think what the author of the script didn’t know is that MSComDlg doesn’t work on non-development systems. I had the same problem with one of my scripts.

Now what to do… I guess I’ll have to remove the script form the amabilis website for now.


The author has provided an updated script. It is now available for download ([img:3cigq7wg][/img:3cigq7wg]
<!– m –><a class="postlink" href=""></a>&lt;!– m –>

Hi Mike,

I had all the code in place to test for the error you encountered, but I forgot to enable testing. This line was missing in the old script
On Error Resume Next

Thanks to you and Richard for pointing this out.

The Straighten Frames script has also been modified, 100 frames or more would have caused an error.



My andquot;guessandquot; is that your rocket model doesn’t have a specular value set for it’s materials. If it doesn’t the Ambient value has less effect.

Just a guess though. MSTS materials are a bit funny in how they work. But…. I do think I have them right andnbsp;:)


That works just fine. Thanks. And yes Richard – it does let me lighten up the 3ds transfer model in MSTS, so I’m happy again <!– s:) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /><!– s:) –> although I still don’t understand why I couldn’t make my Rocket model as dark by changing the ambient value in the texture. But I’ll worry about that later. I’ll include the material edit script in my 3ds transfer tutotial and finish it off now. Should be available in a couple of days.

You must be logged in to reply in this thread.