sketchfab / c4d-plugin

Apache License 2.0
63 stars 20 forks source link

FEATURE REQUEST: Add Support for R25 #24

Open TIMBLOCKER opened 3 years ago

TIMBLOCKER commented 3 years ago

As stated in the title, it would be nice if the Version R25 would also be supported...

d-arbor commented 2 years ago

+1, this would be great to have in R25.

michaelvelasquez commented 2 years ago

Though they released a R25 version and have tested it on R25.010, I'm not able to get it installed using version R25.015 on a M1 Max Macbook Pro. Unzipped the osx version, placed it in my known C4D plugins folder but it doesn't show up in the Extensions menu. I always feel like I'm missing something in the install process, but I do have other, working plugins installed in the exact same folder.

PadreZippo commented 2 years ago

I've received a few reports that it's not working on M1 Macs, but I don't have such a machine to test.

If you open the Console and Script Log, and reload the plugins, is there any error message?

image

Can you show me where you have the plugin installed? It should look something like this:

image

michaelvelasquez commented 2 years ago

Hello, Thank you for responding. My instal location matches yours. I used the file path from Edit>Preferences. I do see an import error for sketchfab.

-michael

Python Version is sys.version_info(major=3, minor=9, micro=1, releaselevel='final', serial=0) DazToC4D : has successfully loaded DaztoC4D : Exports to /Users/michaelvelasquez/Documents/DAZ 3D/Bridges/Daz To Cinema 4D/Exports. Traceback (most recent call last): File "/Users/michaelvelasquez/Library/Preferences/Maxon/Maxon Cinema 4D R25_EBA43BEE/plugins/sketchfab-osx-1.5.0/SketchfabPlugin.pyp", line 39, in from sketchfab.ui_importer import * File "/Users/michaelvelasquez/Library/Preferences/Maxon/Maxon Cinema 4D R25_EBA43BEE/plugins/sketchfab-osx-1.5.0/sketchfab/ui_importer.py", line 33, in import ui_login File "/Users/michaelvelasquez/Library/Preferences/Maxon/Maxon Cinema 4D R25_EBA43BEE/plugins/sketchfab-osx-1.5.0/sketchfab/ui_login.py", line 14, in from api import SketchfabApi File "/Users/michaelvelasquez/Library/Preferences/Maxon/Maxon Cinema 4D R25_EBA43BEE/plugins/sketchfab-osx-1.5.0/sketchfab/api.py", line 20, in from PIL import Image File "/Users/michaelvelasquez/Library/Preferences/Maxon/Maxon Cinema 4D R25_EBA43BEE/plugins/sketchfab-osx-1.5.0/dependencies/PIL/Image.py", line 94, in from . import _imaging as core ImportError:dlopen(/Users/michaelvelasquez/Library/Preferences/Maxon/Maxon Cinema 4D R25_EBA43BEE/plugins/sketchfab-osx-1.5.0/dependencies/PIL/_imaging.so, 0x0002): tried: '/Users/michaelvelasquez/Library/Preferences/Maxon/Maxon Cinema 4D R25_EBA43BEE/plugins/sketchfab-osx-1.5.0/dependencies/PIL/_imaging.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/_imaging.so' (no such file), '/usr/lib/_imaging.so' (no such file) Python Version is sys.version_info(major=3, minor=9, micro=1, releaselevel='final', serial=0) Traceback (most recent call last): File "/Applications/Maxon Cinema 4D R25/plugins/DazToC4D/DazToC4D.pyp", line 219, in main() File "/Applications/Maxon Cinema 4D R25/plugins/DazToC4D/DazToC4D.pyp", line 214, in main DazToC4DPlugin().Register() File "/Applications/Maxon Cinema 4D R25/plugins/DazToC4D/DazToC4D.pyp", line 123, in Register return c4d.plugins.RegisterCommandPlugin( RuntimeError:The plugin ID '1057457' collides with another plugin ID in 'DazToC4D.pyp'. You have to use a unique ID for registering your plugin! You can get a personal number for free from PluginCafe at www.plugincafe.com Python Version is sys.version_info(major=3, minor=9, micro=1, releaselevel='final', serial=0) DazToC4D : has successfully loaded DaztoC4D : Exports to /Users/michaelvelasquez/Documents/DAZ 3D/Bridges/Daz To Cinema 4D/Exports.

On Nov 16, 2021, at 3:25 PM, James @.***> wrote:

I've received a few reports that it's not working on M1 Macs, but I don't have such a machine to test.

If you open the Console and Script Log, and reload the plugins, is there any error message?

https://user-images.githubusercontent.com/7097291/142082118-0378f2ba-d9e5-47b8-8298-5717e7173352.png Can you show me where you have the plugin installed? It should look something like this:

https://user-images.githubusercontent.com/7097291/142082170-3510f7fe-2ddc-40b7-9223-d0670e1b27f5.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sketchfab/c4d-plugin/issues/24#issuecomment-970822048, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG6ISN3EDSW4OCWGQP5SXILUMLR7PANCNFSM5EMGAXAQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Michael Velasquez Creative Producer 818.636.4935 www.e3productions.com http://www.e3productions.com/

michaelvelasquez commented 2 years ago

@PadreZippo Hello. Did the error reports I sent you help at all? I'd really like to be able to use the Sketchfab importer for C4D on my next project. Thank you.

pcolton commented 2 years ago

Looks like the issue is _imaging.so, from this part of the error _imaging.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))

And in checking all the libraries, it seems none are compiled for M1:

>lipo -info *.so
Non-fat file: _imaging.so is architecture: x86_64
Non-fat file: _imagingcms.so is architecture: x86_64
Non-fat file: _imagingft.so is architecture: x86_64
Non-fat file: _imagingmath.so is architecture: x86_64
Non-fat file: _imagingmorph.so is architecture: x86_64
Non-fat file: _imagingtk.so is architecture: x86_64
Non-fat file: _webp.so is architecture: x86_64

If you run under Rosetta, after allowing every library in 'Security & Privacy' settings and 'Open'ing each one from the prompt you get, which takes about 8 restarts of C4D, it will work.

PadreZippo commented 2 years ago

Sorry for the delay over the holidays everyone.

I'm really going to need @loicSketchfab to take a look into this, but I don't think anyone at Sketchfab has an M1 Mac to test yet...

michaelvelasquez commented 2 years ago

@PadreZippo please feel free to hit me up if you want me to try installing test versions on my M1 Mac and sending you logs.

ariestav commented 2 years ago

Has any progress been made here? I'm on an MacBook Pro M1 and cannot get the Cinema4D extension to work.

michaelvelasquez commented 2 years ago

@pcolton I wanted to confirm that you are correct. I had to switch to running Cinema 4D in Rosetta in order to run Octane Render (as well as temporarily disabling SIP) so after reading your comment, I tried installing the C4D Sketchfab importer again and now it works.

However, the latest version of Octane X was just released and I believe it's supposed to be M1 native, so I hope work on making the Sketchfab importer M1 compatible picks up again in the near future.

elebumm commented 1 year ago

Been over a year since any last update. I am on an M1 Mac and still having this issue