Setting a Parameter on a node using the Python SDk

Setting a Parameter on a node using the Python SDk

Anonymous
Not applicable
502 Views
0 Replies
Message 1 of 1

Setting a Parameter on a node using the Python SDk

Anonymous
Not applicable

Hello ,

 

I'm starting to use the Python SDK in Max 2015 and it's implementation is very trying.  I"m glad they have finally decided to address things in 2017. 

 

Anyway ,  our project is stuck with 2015 for the time being and all I want to do is assign a texture map to the diffuse map channel of

a Vray Mtl. 

 

Trying to do this seemingly easy feat while not using EvalMaxscript and I'm finding it difficult , but even using EvalMaxScript is just as frustrating.  

 

I can create a new instance of a Vray material and use the covoluted FPValue class to get the value , but trying to pass a material 

instance back into EvalMaxscript doesn't work for me. 

 

Lets say I have a string that is a path to a texture file .  So from the few lines of code below , how do I set the texmap_diffuse param ? 

 

 

 

 

createmat = "VrayMtl()"
vrayMat = MaxPlus.Core.EvalMAXScript(createmat)
_newmat = vrayMat.Get()




 

 THanks

 

 

0 Likes
503 Views
0 Replies
Replies (0)