Profile image

Craft Generator Script

Dev WNP78  6.7 years ago

Attached is a python script with a functioning GUI that can generate a craft, either with sideways or radial fuselages according to a function defined by the user (the function is in python).
On its use, I would prefer to have credit for the script. Feel free to modify or build upon it, though. And don't spam low-effort builds with it. Be creative, experiment, and don't just upload whatever comes out of the script. The radial mode I guess is also useful for people building hollow fuselages.
To run the script, having python 3 or something is probably a good idea. Then run ui.pyw and you should see the GUI in front of you. There is sample code in both of the modes, so all you should need is there. And just remember: python trig functions use radians. You have no idea how much that hurt me during development.

The Link

  • Log in to leave a comment
  • Profile image
    Dev WNP78

    @TheReturningHound there should be tabs for linear and round.

    +1 4.5 years ago
  • Profile image
    16.6k DarthAbhinav

    Hi, I'm messing around with the script right now, and I can get the linear one to work. However, the "roundUI" doesn't work. To be precise, when I open the file, it just open the GUI for the Linear one. Is there a fix for this?

    4.5 years ago
  • Profile image
    Dev WNP78

    @Looney no problem, if you managed that I'd love to see it!

    4.8 years ago
  • Profile image
    14 Looney

    Working on a neural network version to have Deepdream craft, could I upload it when it's done?

    4.8 years ago
  • Profile image
    29.9k Nerfaddict

    @WNP78 So does Qpython3 work with this?

    5.3 years ago
  • Profile image

    How does it feel to be the newest Dev?

    5.3 years ago
  • Profile image
    Dev WNP78

    @Nerfaddict your version of python doesn't appear to tkinter installed correctly - see this post about that.

    5.7 years ago
  • Profile image
    29.9k Nerfaddict

    @WNP78 all I get is this
    /data/user/0/org.qpython.qpy3/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/scripts3/.lasttmp.py" && exit
    5.sh "/storage/emulated/0/qpython/scripts3/.last
    tmp.py" && exit <
    Traceback (most recent call last):
    File "/storage/emulated/0/qpython/scripts3/.last_tmp.py", line 2, in <module>
    from uiBase import GeneratorUI
    File "/storage/emulated/0/qpython/scripts3/uiBase.py", line 1, in <module>
    from tkinter import *
    File "/data/user/0/org.qpython.qpy3/files/lib/python32.zip/tkinter/init.py", line 39, in <module>
    ImportError: No module named _tkinter
    1|j3xltebmc:/ $

    5.7 years ago
  • Profile image
    Dev WNP78

    @WingMan yes. The text box in the window defines a python function allowing you to enter any kind of formula/expression you want. For instance using sin or cos, squaring, etc.

    5.7 years ago
  • Profile image
    195 WingMan

    a shape other than the sine wave i thought i could use equations to make unique shapes, also when you generate where are these "simpleplane files"
    @WNP78

    5.7 years ago
  • Profile image
    Dev WNP78

    @WingMan other shapes?

    5.7 years ago
  • Profile image
    195 WingMan

    how do i make other shapes @WNP78

    5.7 years ago
  • Profile image
    15.3k Texasfam04

    I have to say its a blast reading your responses to these stupid questions WNP!!! If I wasn't busy writing this i would literally be ROTFLMAO!!! :-D
    @WNP78

    6.2 years ago
  • Profile image
    Dev WNP78

    @18039167610 what links can you open?

    6.2 years ago
  • Profile image
    29.0k Mattangi2

    “Use radians”
    Damn you went to high school!

    6.4 years ago
  • Profile image

    😭@WNP78

    6.5 years ago
  • Profile image
    Dev WNP78

    @The1Big1Finger1111 nope.

    6.5 years ago
  • Profile image

    Can i use this on iOS

    6.5 years ago
  • Profile image
    2,199 Cajunking13

    @WNP78 I am clueless as of how to use this past craft generator how do i change the shape and size and ect??

    6.5 years ago
  • Profile image

    @WNP78 how do you use python, I need a tutorial and I have already seen some videos, but it doesn't help

    +1 6.6 years ago
  • Profile image
    104k Dllama4

    lolrip @sexylips35

    +6 6.6 years ago
  • Profile image
    29.1k TigerEye35

    @WNP78 I read your previous comment and i can't understand...

    6.6 years ago
  • Profile image
    Dev WNP78

    @sexylips35 no, you should read my previous comment.

    +2 6.6 years ago
  • Profile image
    29.1k TigerEye35

    @WNP78 Should i extract the script?

    6.6 years ago
  • Profile image
    Dev WNP78

    Plus, to create anything good looking, a decent grasp on trigonometric, exponential or other mathematical functions as well as symmetry and being able to code python. I'd be wasting my time.

    +2 6.6 years ago
  • Log in to see more comments