Notifications
Clear all

[Closed] renderEnabled on scripted Direct X material

Hi,

I’m using a scripted material that extends the Direct X material in max. I wanted to implement a toggle button in the scene that would enable software rendering because our Direct X material can be a bit slow for certain operations. I’d like the object to display the render material but am not having much luck. The following syntax doesn’t seem to work:

$.material.delegate.renderEnabled = true

However, If I apply the .fx file that I’m using in the scripted material to an object directly using the Direct X shader and run the following code everything works as intended:

$.material.renderEnabled = true

Does anyone know of a way to enable software rendering in scripted materials that extend Direct_X? Thanks for the help, Jon