StjerneIdioten / I3D-Blender-Addon

Rewriting the I3D blender addon from scratch and adding long-sought community features
GNU General Public License v3.0
66 stars 18 forks source link

Shader-picker ui is glitchy with different parameter types #68

Open StjerneIdioten opened 4 years ago

StjerneIdioten commented 4 years ago

Describe the bug The shader-picker ui looks quite wonky, when the read parameteres have different types like float and float4 next to each other.

Screenshots image image

kbrandwijk commented 3 years ago

I noticed this as well. A naive approach would be to do what GE does, and just display all of them as float4. I've looked into disabling some of them, but within the FloatVectorProperty control, this isn't possible. Alternatively, a 4 column approach with 4 separate controls could be considered?

What's your desired solution?

StjerneIdioten commented 3 years ago

I would probably try and avoid making "fake" fields aka the GE way :-P I think the key lies in playing with the blender UILayout elements, problem is the documentation sucks. I have seen other addons being successful in this kind of thing though, so should be possible.

The shaderpicker was also the first real try I had with manipulating Blenders UI. I believe some of the other UILayout things like split or maybe some form of filler blocks should be able to solve it.