Author Topic: Substance plugin to Redshift 3dsmax 2020  (Read 7279 times)

There seems to be a bug in the newest version of the substante plugin (2.2.0) in 3ds max 2020, where you can't create a connection to the Redshift Material. When you click at the "Substance to Redshift" button on the menu, it yells at you with "Type error: call needs function or class, got : undefined". I have set the render to use redshift.  Is this a bug or am I doing something wrong?

It is a bug from a change in how Redshift defines its nodes. They renamed all of them sometime last year. We have this fixed and it will be in the next release.
Software Engineer, Integrations
Maya, 3ds Max and Core Libraries
galen.helfter@allegorithmic.com

I'm in need of this fix also, when can we expect the next release of substance plugin? 

For those in need of a fix, if you are comfortable with editing the script then you have to do the following:
1. Open SubstanceToRedshift.ms
2. Change line 128 to "mat = RS_Material()"
3. Change line 151 to "bumpMapNode = RS_Bump_Map()"

It looks like the renaming changed the prefix "Redshift" to "RS", so if you find another undefined error, check if there is a function call that still uses the old prefix.

i just installed the newest version of your substance plugin for 3ds max. substance 2.2.0
i get this error: "Type error: call needs function or class, got : undefined" and my script editor opens.
I've tried to do the changes in the script that was suggested above. But it did not help.
Any Solution?
thanks!

That should be resolved for the next release.

After the script had been written, redshift renamed their nodes at some point to be more aligned with their other plugins. This had the side effect of making the script non-functional.
Software Engineer, Integrations
Maya, 3ds Max and Core Libraries
galen.helfter@allegorithmic.com