Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - xinyuanHu

Pages: [1]
Substance PainterSubstance Painter - Scripting - Re: QML changes in 2019.3
 on: March 30, 2021, 11:28:49 am 
I have the same problem in development as this thread,My UI panel not works after adding an extra shader parameter.The log file shows the "[Plugin - customUI/project0/QS...] Cannot read property 'description' of null" error,I did a lot of debugging,Then it narrowed the question down further to two causes:
1.AlgWidgets version,When errors such as reporting occur, you need to modify the algWidget version of QML from 2.0 to 1.0:
Code: [Select]
import AlgWidgets 1.0,ps:AlgWidgets.Style version is not necessarily modified, but I still think the 1.0 Style is more aesthetically pleasing
2.Logical dependency of widgets and shader Parameter,If you have a lot of parameters, and the logic of drawing the UI needs to be judged by the parameters,You need to decouple the drawing UI logic from the shader parameters,like qml's visible,parameters connect etc.

In my case they did work, so good luck to another guys!

Pages: [1]