Hot4D for C4D 2024 not working, Xcode error
-
Hello,
but my M1 Mac died and I can't get it to work in 2024.1.0 on a M3 Mac Sonoma 14.1.2. Because so many factors changed at once (hardware, OS, software), I can't tell what the culprit is.
Forgive me if I use the wrong terminology or don't provide enough info as I'm not a coder. I've been able to get Hot4D working on a M1 Mac Ventura for C4D 2023.2.2 using this tutorialThe tutorial involves downloading the Hot4D source code from GitHub, the Maxon Project Tool from the Maxon developers site, and the sdk file from the C4D application folder and then using Xcode to create a new version of the Hot4D plugin. I'm running Xcode version 15.0.1.
The tutorial worked as is for converting Hot4d to R24 and R25. For 2023 I got errors when compiling in Xcode but deleting the offending lines of code referenced in the error got it working.
When attempting the same thing for 2024 I run in Xcode I get the following:
PhaseScriptExecution Run\ Source\ Processor /Users/MyUsername/Downloads/Ocean/sdk/build/core.framework.build/Debug/core.framework.build/Script-A0F4AB3A6F00000000690000.sh (in target 'core.framework' from project 'core.framework')
cd /Users/MyUsername/Downloads/Ocean/sdk/frameworks/core.framework/project
/bin/sh -c /Users/MyUsername/Downloads/Ocean/sdk/build/core.framework.build/Debug/core.framework.build/Script-A0F4AB3A6F00000000690000.sh/Users/MyUsername/Downloads/Ocean/sdk/build/core.framework.build/Debug/core.framework.build/Script-A0F4AB3A6F00000000690000.sh: line 2: python: command not found
Command PhaseScriptExecution failed with a nonzero exit codeI'm looking at the Script-A0F4AB3A6F00000000690000.sh contents and they are:
#!/bin/sh
python ${MAXON_ROOTDIR}frameworks/settings/sourceprocessor/sourceprocessor.py "$PROJECT_DIR/.."I'm running Python 3.12.0 for what it's worth. If it's the problem, sourceprocessor.py seems to be located in:
/Users/MyUsername/Downloads/Ocean/sdk/frameworks/settings/sourceprocessor/sourceprocessor.py
and it's full of code I don't understand. I've attached it for reference
Google isn't turning up any clues. The plugins4D site has a 2024 version of Hot4D for $40 so we know it CAN work, but not how. It's hard to justify paying $40 for a plugin no one supports and I've had working for free for a couple years now.
Thank you for any help or insight you can provide.
sourceprocessor.py -
@josephnvelasquez49 It could be that in Xcode you haven't changed the build system back to the legacy system. If you don't you get all sorts of weird errors and the ones you are seeing look suspiciously like that. Also, the recommended Xcode version for R2024 plugins is 13, not 15; I don't know what will happen if you try building plugins with Xcode 15 but it's possible it doesn't even have the legacy build system, which Apple deprecated in 13 (or earlier).. Finally, Xcode 13 doesn't come with Python as part of the install so you need to add that separately and 15 may be the same.
See this page: https://developers.maxon.net/docs/cpp/2024_0_0/page_maxonapi_dev_macos.html
Steve
-
Hello @josephnvelasquez49,
Welcome to the Plugin Café forum and the Cinema 4D development community, it is great to have you with us!
Getting Started
Before creating your next postings, we would recommend making yourself accustomed with our Forum and Support Guidelines, as they line out details about the Maxon SDK Group support procedures. Of special importance are:Support Procedures: Scope of Support: Lines out the things we will do and what we will not do.
Support Procedures: Confidential Data: Most questions should be accompanied by code but code cannot always be shared publicly. This section explains how to share code confidentially with Maxon.
Forum Structure and Features: Lines out how the forum works.
Structure of a Question: Lines out how to ask a good technical question. It is not mandatory to follow this exactly, but you should follow the idea of keeping things short and mentioning your primary question in a clear manner.About your First Question
Thanks a lot for posting, we are looking into this and let you know as soon as possible.Cheers
Jana