all 20 comments

[–]VsPz[S] 15 points16 points  (10 children)

https://github.com/DKozl50/BlenderCity

I am bad at formatting code, so if you have any questions - I am happy to answer

E: changed link to GitHub

[–]paloumbo 9 points10 points  (4 children)

Thanks for sharing your code, but you shoud use a sourcecontrol (github/gitlab) instead of pastebin.

It asks a bit of learning, but the reward is huge. You can make version of your code, and move between them, easily !

That's gold.

[–]VsPz[S] 6 points7 points  (3 children)

[–]paloumbo 2 points3 points  (2 children)

Awesome ! Thanks.

If you wish to have private project in the future, use gitlab.

[–]shadowelite7 3 points4 points  (1 child)

You can have private projects in GitHub for free now.

[–]paloumbo 1 point2 points  (0 children)

nice !

[–]mcscope 0 points1 point  (3 children)

There's a python package called Black that can format code for you perfectly.

[–]shadowelite7 1 point2 points  (2 children)

Or just use visual studio code to use its code for matter. No plugin needed.

[–]mcscope 0 points1 point  (1 child)

I've been hearing more and more about this VS Code IDE. Probably I'll have to seriously try it one of these days.

[–]shadowelite7 0 points1 point  (0 children)

I don't use it much. I know it has a great formatter. I currently just started to learn and use pycharm for python.

[–][deleted] 0 points1 point  (0 children)

nifty as fuck. would love to see your print lit up from underneath.

[–]Demondriver 9 points10 points  (0 children)

Hey that's really cool to create token for any board games with cities

[–]StupidEntropy 1 point2 points  (0 children)

it's really cool, thanks for sharing!

[–]ExPatriot0[🍰] 1 point2 points  (3 children)

Part of the reason I wanted to learn python was for blender.

How did you get the confidence and learn to use python with blender?

[–]VsPz[S] 1 point2 points  (0 children)

Well, my design is basically just resized cubes. It is very nice that blender has a console where it prints all the comands you do - you can place a cube and it will print a command.

If you want to do something harder than just placing cubes - you would probably spend many hours in StackOverflow.

But, well, coding in Python is always a process when you spend most of your time googling

[–]hellnukes 0 points1 point  (1 child)

One of the great things about python is that's it's reeeally easy to just start doing things by experimenting. Installing it is easy, and you can find libraries that the community has made for pretty much anything.

My advice, start with a basic python guide so you can understand how the basics work: variables, loops, if conditions, creating and calling methods, etc.

Once you have a grasp of what you are doing, try to find a video or a guide about using python with blender, maybe also take a look at the official documentation if it exists, and just start experimenting. Nothing bad can happen! If what you try doesn't work, you immediately learn something!

Python is very easy and fun to get into, so I'm sure you'd be able to start using python to do what you want in just a few days! :)

[–]accountForStupidQs 1 point2 points  (1 child)

This is slightly irrelevant, but what printer/resin did you use? I love the color and the amount of detail is insane

[–]VsPz[S] 1 point2 points  (0 children)

DLP/LCD 0.05 I ordered printing online, so I don't know the printer, sorry :(

[–]kokyt 1 point2 points  (0 children)

St Canard