7
$\begingroup$

Is there a way to increase the vertical height of a StringProperty? My goal is to have a multi line text entry field.

Panel Example

I have applied a scale_y which works on operator buttons but doesn't seem to work on a StringProperty

    sub = col.row()
    sub.scale_y = 3.0
    sub.operator("render.render")
    sub.prop(scene.video_info,"video_description")

Edit for clarification

My objective is to have a text entry field that can accept an arbitrary amount of user input including multiple lines. I would want it to look something like this:

example of desired outcome

I know that the Enter key causes the input to be finished. I had made the assumption that could be disabled. If not then this question may be futile in the first place.

The "why" is that I have created an add-on to allow uploading rendered videos to Youtube from within Blender. This would be the description field for a video. example of current plugin

$\endgroup$
7
  • $\begingroup$ AFAIK it isn't possible. Even the text on the big button above isn't bigger, same for labels. $\endgroup$
    – batFINGER
    Oct 6, 2017 at 17:37
  • $\begingroup$ Use UILayout.split() to make columns using a percentage of the available width. See this answer $\endgroup$
    – sambler
    Oct 9, 2017 at 4:55
  • 1
    $\begingroup$ I don't see your point how split() helps to fit the property vertically @sambler. Out of curiosity: Can you elaborate on that please? AFAIK multi line is also not possible so there is no chance to achieve that. $\endgroup$
    – brockmann
    Oct 9, 2017 at 8:01
  • $\begingroup$ Given your new edit, as a workaround, maybe a link to text block for description could be way to go for long descriptions. $\endgroup$
    – batFINGER
    Oct 9, 2017 at 14:57
  • 1
    $\begingroup$ One could argue that multi line text boxes would only add clutter to UI, does it wrap, scroll, crop on panel resize, and not add any functionality that the text editor already gives. $\endgroup$
    – batFINGER
    Oct 9, 2017 at 15:05

0

Browse other questions tagged or ask your own question.