Posts

Showing posts from June, 2022

Fixing Non-Manifold Meshes in Blender

Image
One of the things that will make you fed up with Boolean modifiers in Blender is the non-manifold output. Unfortunately, there is no robust way to cover this issue. However, we can create a tool that can fix most (if not all) of the problematic meshes. This tool helps us fix non-manifold meshes in Blender. Creating A Tool to fix Non-Manifold Meshes in Blender In the photo below, you can see an example of a non-manifold result that appeared as a result of a Boolean difference of another cube from this one. If you apply another Boolean operation on this object, you will see that the object gets fully destroyed. Python Scripts In the scripts below we will get benefit from the functions that will eventually create a standard mesh that is the result of remeshing from triangular meshes to voxel-based meshes and also removing the non-manifold meshes. import bpy import bmesh import math #################################################################### ##### Utility Fu

How to Apply Boolean Union of Many Objects in Blender

Image
This tutorial covers most (if not all) of the problems concerning the boolean union of multiple objects in Blender . If you have worked with a boolean modifier in Blender more than just a try, you must have faced the circumstances in which the result of union would have been a non-manifold mesh or you have wanted to boolean union a great number of objects and you have ended up with a simple modifier that only does the boolean union only for a couple of objects that you wouldn’t be sure if the result of the union would have non-manifold mesh or not. This article guides you with different ways to solve this issue. Boolean Union of Multiple Objects in Blender Suppose you have a lot of cubes that you want them all to merge into one object, if the number of cubes is n, you will have to apply the boolean union modifier n-1 times, which takes a lot of time. You may use the python Blender API and do this job in a loop. This solution is OK until you face with the non-manifold result caused by t

A Quick Way to Automatically Remove Loose Parts in Blender

Image
There are times that you face some unwanted extra objects all over your mesh such as when you get a raw 3d scan object that has been converted from point cloud to mesh. And, you want to quickly get rid of them all. In this tutorial, we are going to see how we can remove these loose parts in Blender and how we can create a button to quickly do that for us. How to Remove Loose Parts in Blender There are times that you face some unwanted extra objects all over your mesh such as when you get a raw 3d scan object that has been converted from point cloud to mesh and you want to quickly get rid of them all. In this tutorial, we are going to see how we can get away with these small useless specks of dust using Blender python and how we can create a button to quickly do that for us. IMPORTANT NOTE: Remember that the scripts we are using here are related to Blender version 2.83 and if you are working with any other versions, it is probable that the scripts might differ a little bit, but w

How to Instantly Translate An Object in Blender

Image
To Translate an object to the place we visually determine by eyeballing in Blender is a time-taking process especially when we are working with a great number of objects. In this tutorial, we are going to see how we can instantly move an object to the desired location we specify with the cursor. To do so, we first need to retrieve the point, and then using the acquired coordinates of the point, we can change the location of the object. Translate An Object to A Special Point in Blender Translating an object to the place we visually determine by eyeballing is a time-taking process especially when we are working with a great number of objects. In this tutorial, we are going to see how we can instantly move an object to the desired location we specify with the cursor. To do so we first need to retrieve the point and then using the acquired coordinates of the point, we can change the location of the object. With that said, let’s get started: import bpy import bmesh import math #####

How to Automate Your Tasks and Design in Blender

Image
In this tutorial, you will see how Blender Python API could help you automate the tasks in Blender. So, You can skip many time-taking manual steps by scripting in the Blender Python . We are going to design a user interface to operate a certain number of tasks in a matter of seconds and at the same time make it easy for the user or designer to apply those tasks. Introduction to Blender Python API If you are familiar with the design processes in Blender, you must know that some design procedures can take hours or even days. So, you have to deal with some repeating tasks over and over again. That is when Blender Python API comes to our help. There are many times that you want to skip easily repeating but time-taking procedures and want them to boil down to only one button or some multiple buttons to make your life much easier and faster. In this tutorial, we are going to see how we can manage these tasks and how we can find scripts related to the different modifiers that are going to

Creating NFTs with Smart Contracts and Python Brownie

Image
In our previous article about the Non-Fungible tokens , we explained about the methods of ERC-721. In this tutorial, we are going to use those methods to write the simple_collectible.sol smart contract and deploy it on the Rinkeby chain. In other words, we are going to create NFTs with Python Brownie tools. But before that, we also want to connect our test wallet to https://testnets.opensea.io in order to create an account in OpenSea which is a marketplace for NFTs. Creating NFTs with Python Brownie In this tutorial, we are going to use those methods to write the simple_collectible.sol smart contract and deploy it on the Rinkeby chain. But before that, we also want to connect our test wallet to https://testnets.opensea.io in order to create an account in OpenSea which is a marketplace for NFTs. To begin writing our smart contract, we have 2 options: 1. Use Brownie not mix by typing the below command in the terminal: Coppied to clipboard. brownie bake nft-mix And we will see all

Getting Started with Smart Contracts Using Solidity: A Helpful Intro

Image
This article aims to introduce Solidity language as a tool to write smart contracts and for the ease of the audience, it begins with Remix IDE to write the Solidity scripts. In this article, we are going to see how data types are defined in Solidity and learn how to work with Remix IDE. In addition to that, we are going to write smart contracts using Solidity to store and retrieve data. Why Using Solidity? One of the most famous languages used to deploy smart contracts on the Ethereum blockchain is Solidity. Once you learn how to code with this language, not only will you be able to write smart contracts, but you are open to many projects and tasks such as ICOs, NFT, metaverse, and so on. So learning how to write smart contracts using Solidity is the key to opening many doors to the hot topics of the world of blockchain and cryptocurrency. Solidity is a high-level language that is influenced by C++, Python, and Javascript. It is object-oriented, supports inheritance, and is mostly