How to make a simple entry dialog box (like in the image) in blender and processing the text entered through python.I am unable to find any good tutorial on this.
相关问题
- program skipping a line of code
- Materials in exported Blender model for Three.js n
- How to selector ID textbox array using jquery
- Disable Paste on React Native TextInput
- Why OpenGLES stretch my 3D Model?
相关文章
- Is it possible to style a text input to fill the w
- LibGDX texture blending with OpenGL blending funct
- Transferring rig weights from one mesh to another
- react-native TextInput displays wrong when changin
- Static variable inheritance in Python
- How can I access BPY in standard python console? B
- rendering and saving images through Blender python
- Three-JS Mesh visible on opposite side of model
For the dialog box the answer from how to show a message from a blender script? might be a starting point.
But I think a better approach is integrating input into the panel like e.g.
To do this you have to add a
StringProperty
to your add-on and place it inside your panel (see Addon Tutorial for more information). The basic steps are:...
...
...
You can access the string by
context.scene.my_string_prop
There is another mode to integrate input. When you add for example a text to your scene you can change the parameters after the operator has been called and see the changes immediately:
Changing Location will move the newly created text object at another place. I haven't worked with this but it should be similar to the code above.