The error message you are experiencing with the “Send to Unreal” addon from Blender seems to be related to a regular expression issue within Python, specifically, the use of global flags. This error might be occurring due to an incompatibility or a bug within the addon’s scripts that handle regex processing.
1. Check Blender and Addon Versions
- Ensure that you are using a version of Blender that is compatible with the “Send to Unreal” addon. Sometimes, these addons are sensitive to the Blender version due to changes in the API or Python version.
- Check if there are updates available for the “Send to Unreal” addon that might have addressed this issue.
2. Review Regex Implementation
- The error
re.error: global flags not at the start of the expression
suggests that there might be a misuse of regex syntax in the addon’s code. Unfortunately, without modifying the addon’s source code, there’s not much you can do here directly. However, knowing this might help when seeking support from the addon developers.
3. Seek Support and Report Bug
- Since this seems to be a bug within the addon, consider reporting this issue on the addon’s official support or community forum. Providing them with the detailed error message and your setup might help them identify and resolve the issue in a future update.
4. Temporary Workaround
- If you are familiar with Python and comfortable making changes to the addon scripts, you might attempt to look into the files mentioned in the error (
utilities.py
,re_parser.py
) and see if the regex expressions can be adjusted. The issue is likely with how flags are used in the regex patterns. - Specifically, Python’s
re
library requires that any global flags (likere.IGNORECASE
,re.MULTILINE
) be placed at the very start of the pattern. Check if this is being adhered to in the code.
5. Ensure Correct Configuration in Unreal Engine
- Double-check all settings in Unreal Engine that are required by the addon:
- Ensure that the plugins and settings like “Remote Execution” are not only enabled but correctly configured.
- Confirm the IP address and ports settings are correct and there aren’t any firewalls or security settings on your system that might be blocking the connection between Blender and Unreal.
6. Alternative Asset Transfer Methods
- While you troubleshoot this issue, consider using alternative methods to transfer assets from Blender to Unreal Engine, such as exporting to FBX and importing manually into Unreal. This isn’t as streamlined but can be a reliable stopgap.
Hope this helps.