Converting Octane Materials back to C4D counterparts

Forums: Converting Octane Materials back to C4D counterparts
Sub forum for feature requests etc

Moderator: aoktar

Re: Converting Octane Materials back to C4D counterparts

Postby franchus » Thu Jul 16, 2020 8:07 pm

franchus Thu Jul 16, 2020 8:07 pm
AndyReuter wrote:I'm lost on this one. How do you use a script like this??


Hey Andy, I already replied to you mail, but here you have also the same reply plus the .py file:
To run a user script you need to go to Extensions / user scripts/ Run script inside C4D

there are a few things to keep in mind:
1) Octane needs to be running on that machine if not C4D won't be able to read the info inside the octane material
2) the images inside the octane node editor must be inside an image texture node not a bitmap node. The script converts native octane to c4d and the bitmap node is a c4D object.
3) You need to have the octane materials you want to convert selected in the material manager.
Attachments
octane_to_C4D_material.zip
Here's the script packed.
(2.59 KiB) Downloaded 753 times
franchus
Licensed Customer
Licensed Customer
 
Posts: 44
Joined: Fri May 13, 2016 7:57 am
Location: Barcelona

Re: Converting Octane Materials back to C4D counterparts

Postby mmelchiorre » Fri Oct 23, 2020 11:10 pm

mmelchiorre Fri Oct 23, 2020 11:10 pm
life saver! thanks francus!
mmelchiorre
Licensed Customer
Licensed Customer
 
Posts: 1
Joined: Thu Feb 02, 2017 9:08 pm

Re: Converting Octane Materials back to C4D counterparts

Postby DEmpire » Fri Apr 30, 2021 2:22 pm

DEmpire Fri Apr 30, 2021 2:22 pm
Did anyone have any luck getting this to work? I brought the above code into a text file and saved it with .py extension. Used script manager to run it in C4D with materials selected but nothing happened. Console is reporting some formatting errors like "IndentationErrors" but I suspect it's more than just that. Curious if anyone got this working and had any tips?

Thank you in advance
DEmpire
Licensed Customer
Licensed Customer
 
Posts: 1
Joined: Tue Mar 07, 2017 8:17 pm

Re: Converting Octane Materials back to C4D counterparts

Postby Sabour7 » Wed Jun 23, 2021 7:34 pm

Sabour7 Wed Jun 23, 2021 7:34 pm
Any Luck on the convertion?
Sabour7
Licensed Customer
Licensed Customer
 
Posts: 8
Joined: Fri Oct 23, 2015 6:23 am

Re: Converting Octane Materials back to C4D counterparts

Postby randymills » Sun Aug 08, 2021 8:38 pm

randymills Sun Aug 08, 2021 8:38 pm
Has anyone had any luck using this script? I'm in C4D S24 and using the latest version of Octane Enterprise for C4D (2020.2.4)...

I found this script that worked very nicely for anyone looking for a solution: https://gumroad.com/l/fPcMB

NOTE: You will need to edit the Octane_Roundtrips2.py to change all "xrange" to "range" to get it to work on the latest version of C4D (shoutout to Billy Silver for this one)
randymills
Licensed Customer
Licensed Customer
 
Posts: 6
Joined: Fri May 20, 2016 7:06 am

Re: Converting Octane Materials back to C4D counterparts

Postby MountStone » Tue Jun 21, 2022 12:39 pm

MountStone Tue Jun 21, 2022 12:39 pm
Absolutely a lifesaver! Thank you very much for the hint with xrange and range!
MountStone
Licensed Customer
Licensed Customer
 
Posts: 3
Joined: Wed Jul 06, 2016 9:55 am

Re: Converting Octane Materials back to C4D counterparts

Postby Kalua » Thu Mar 16, 2023 3:34 pm

Kalua Thu Mar 16, 2023 3:34 pm
Thanks, guys!
I have tried it but with no luck.
The command doesn't seem to respond.
Something seemed to be processed... but no results.
C4D R25, Octane 2022.1 R8
I am willing to pay for a usable converter like this... but so far haven't found anyone interested in doing it.

Regards,

EDIT: Just made it work with R20! Really impressive! It Works great.
Can't make it work neither on R25 or R2023.
Maybe someone knows what it takes to upgrade this.
C4D 25.117 Octane 2022.1.2 R4, <<2 X 3090 + NVlink>>, Windows 10, X399, AMD TR 1950X, 128 GB RAM, NVIDIA SD 536.67
https://www.behance.net/PaperArchitect
Kalua
Licensed Customer
Licensed Customer
 
Posts: 481
Joined: Fri Oct 11, 2013 2:13 am
Location: Caribbean Sea

Re: Converting Octane Materials back to C4D counterparts

Postby Kalua » Thu Mar 23, 2023 4:29 am

Kalua Thu Mar 23, 2023 4:29 am
I found out the issue.
Python upgraded from v2 to v3 in R23.
I used 2to3.py to update it.
It works nicely with R23 and up now.
Thnaks everybody for sharing this.
Attachments
octane_to_C4D_material R23+.rar
I leave here the updated version. All credits to the original coder: Copyright: Painting Practice (www.paintingpractice.com)
(2.51 KiB) Downloaded 194 times
C4D 25.117 Octane 2022.1.2 R4, <<2 X 3090 + NVlink>>, Windows 10, X399, AMD TR 1950X, 128 GB RAM, NVIDIA SD 536.67
https://www.behance.net/PaperArchitect
Kalua
Licensed Customer
Licensed Customer
 
Posts: 481
Joined: Fri Oct 11, 2013 2:13 am
Location: Caribbean Sea

Re: Converting Octane Materials back to C4D counterparts

Postby poclin » Sun Apr 23, 2023 7:33 pm

poclin Sun Apr 23, 2023 7:33 pm
Hi Everyone.

Thanks a lot for this very usefull script.I have a quick question. Do you have an idea to add channel displacement conversion? I tried to re-edit the script but without success (I am new to python).
poclin
Licensed Customer
Licensed Customer
 
Posts: 1
Joined: Sat Jul 02, 2016 3:17 pm

Re: Converting Octane Materials back to C4D counterparts

Postby Kalua » Mon May 01, 2023 10:13 am

Kalua Mon May 01, 2023 10:13 am
poclin wrote:Hi Everyone.

Thanks a lot for this very usefull script.I have a quick question. Do you have an idea to add channel displacement conversion? I tried to re-edit the script but without success (I am new to python).


No idea. I only updated the script to work on R23+.
This is just a good way to batch a conversion and save big time on big scenes if you ever need to export a scene.
Regards,
C4D 25.117 Octane 2022.1.2 R4, <<2 X 3090 + NVlink>>, Windows 10, X399, AMD TR 1950X, 128 GB RAM, NVIDIA SD 536.67
https://www.behance.net/PaperArchitect
Kalua
Licensed Customer
Licensed Customer
 
Posts: 481
Joined: Fri Oct 11, 2013 2:13 am
Location: Caribbean Sea
Previous

Return to User requests


Who is online

Users browsing this forum: No registered users and 2 guests

Thu Mar 28, 2024 9:34 pm [ UTC ]