Skip to main content
唯顾40319124
Participant
January 23, 2025

Custom Shader UI error if there are too many parameters in shader after updated to 10.1

  • January 23, 2025
  • 0 replies
  • 94 views

I have created a custom shader expanded from "C:\Program Files\Adobe\Adobe Substance 3D Painter\resources\starter_assets\shaders\pbr-material-layering.glsl", it has total about 1600 lines. It works fine in 10.0. After updated to 10.1, I updated all the error qml to pyside6. But I got this error when using the shader.

 

[Plugin - customUI/session/xxx...] Cannot read property 'description' of null
@qrc:/js/shaders.js:308
filterObject_@qrc:/js/shaders.js:200
materials@qrc:/js/shaders.js:307
displayShaderParameters@file:///D:/xxx/ArtRawData/Art/ArtPipeline/SubstancePainter/shelf/shaders/custom-ui/material-layer/custom-ui.qml:24

 

I tried to delete some functions to find the place causing this error. And I found this error will show up if there are too many parameters defined in the shader. Not related to certain parameters, but seems only related to the total parameters numbers in the file. 

I have around 900 lines of parameter defined