[Blender] Script to check if the selected one is a mesh

If the selected one is a mesh, it will be printed as "this is mesh"

import bpy
selectList = bpy.context.selected_objects
if selectList[0].type == "MESH":
	print("this is mesh")
else:
    print("this isn't mesh")

Personal notes

Recommended Posts

[Blender] Script to check if the selected one is a mesh
Create a python script to check if the link at the specified URL is valid 2
Create a python script to check if the link at the specified URL is valid
How to check in Python if one of the elements of a list is in another list
Check if the string is a number in python
I created a script to check if English is entered in the specified position of the JSON file in Python.
[Golang] Check if a specific character string is included in the character string
I made a function to check if the webhook is received in Lambda for the time being
I want to receive the configuration file and check if the JSON file generated by jinja2 is a valid JSON
How to create a submenu with the [Blender] plugin
How to use any or all to check if it is in a dictionary (Hash)
Check if it is Unix in the scripting language
Script to search all selected object hierarchies in Blender
The Blender script (2.8) that erases only the skirt is completed
Check if the LAN cable is disconnected on Linux
python> check NoneType or not> if a == None:> if a is None:
A command to check when something goes wrong when the server is not doing anything
Check if it is Unix in the scripting language
Check "[Windows] How to tell if the exe is x64 or x86 Part2" on MacOS Go
A Python script that allows you to check the status of the server from your browser
One liner to hit if you forget where today is
I want to initialize if the value is empty (python)
[python] How to check if the Key exists in the dictionary
I made a function to check the model of DCGAN
If an engineer is asked to entertain a wedding reception
How to check if a value exists in an enum
I wrote a script to combine the divided ts files
Is there a secret to the frequency of pi numbers?
The image is a slug
What to do if you cat or tail a binary file and the terminal is garbled
Write a script in Shell and Python to notify you in Slack when the process is finished
Python will fail if there is a space after the backslash
A note on how to check the connection to the license server port
Check if the configuration file is read in an easy-to-understand manner
Conditional branch due to the existence of a shell script file
How easy is it to synthesize a drug on the market?
How to check the memory size of a variable in Python
Create a shell script to run the python file multiple times
Delete a particular character in Python if it is the last
How to check the memory size of a dictionary in Python
What to do if the inode is exhausted on EC2 Linux
Write a script to calculate the distance with Elasticsearch 5 system painless
A command to easily check the speed of the network on the console
Determine if standard output is piped when running a Python script
A script that returns 0, 1 attached to the first Python prime number
The road to web application development is a long way off
Check if you can connect to a TCP port in Python
Have python check if the string can be converted / converted to int
How to determine if a shell script was started in bash
[Blender] Assign shortcut keys to your own functions inside the script
Check if there is a specific symbol in the executable file and its dependent libraries (simplified version)
Determine if the string is formatable
Determine if the library is installed.
[Blender] How to make a Blender plugin
What to do if there is a decimal in python json .dumps
[Python] What is a formal argument? How to set the initial value
What to do if the Pipenv environment is corrupted by updating Homebrew
[Introduction to Python] What is the difference between a list and a tuple?
AtCoder writer I wrote a script to aggregate the contests for each writer
I want to identify the alert email. --Is that x a wildcard? ---
A shell script to make sure you don't forget the pipenv shell again