Go Back   SplutterFish Forums > SplutterFish Client Forums > Scripting / Bonus Tools (MaxScript)
Login
 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 29-Mar-2010, 08:51 PM
RichardAnnema's Avatar
RichardAnnema RichardAnnema is offline
Automated Posting Zombie Machine
 
Join Date: Jul 2002
Location: The Netherlands
Posts: 9,409
Default

that doesn't look like it should have failed in any way...

With a VRayMtl (again, not inside any other materials, just to short-circuit that potential problem) selected in medit, let's try through the innards of the converter...
Code:
sfs.b2_converters_init() -- may be needed if you haven't accessed the converters UI yet
newMat = sf_b2_converters.convert meditMaterials[activeMeditSlot] convdir:#vrb2
That should return a new material of Brazil2 Advanced type. You can then assign it to e.g. medit slot 2 through:
Code:
meditMaterials[2] = newMat
If it returns 'undefined', then for some reason it didn't think the VRay material was, in fact, a VRayMtl (the script output shows that it should be, so that would be odd).

Either way, a report should get dumped to the listener again.
__________________
__________________
Richard Annema
Director of Client Relations
SplutterFish
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:50 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.