Setting a Parameter on a node using the Python SDk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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