How to: Creating macros in Blender

Discuss Urho3D art-related topics (creation, import, export, troubleshooting) and share your free art.
Forum rules
Please only share free art (eg. public domain or open source-licensed such as Creative Commons) that you own the copyright to. Do not advertise for-pay content.

How to: Creating macros in Blender

PostPosted by Modanung » 01 Jun 2016, 18:46

I just found out how easy it is to create macros in Blender. Here's how:

The python script included in the description sorts the elements of all selected objects by material. This makes geometry indexes in Urho3D correspond with the object's list of materials in Blender. Without macros this would be quite tedious and time-consuming work if you need to do it for many objects.
for (Person* p : people)
ΞΞΞΞp->StopUsingWindows("https://www.linuxmint.com");
User avatar
Modanung
Active user
Active user
 
Posts: 171
Joined: 22 Jan 2015, 14:53
Location: The Netherlands

Return to Artists

Who is online

Users browsing this forum: No registered users and 0 guests

cron