Converting Octane Materials back to C4D counterparts

Sub forum for feature requests etc

Moderators: ChrisHekman, aoktar

franchus
Licensed Customer
Posts: 44
Joined: Fri May 13, 2016 7:57 am
Location: Barcelona
Contact:

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 931 times
mmelchiorre
Licensed Customer
Posts: 1
Joined: Thu Feb 02, 2017 9:08 pm

life saver! thanks francus!
DEmpire
Licensed Customer
Posts: 1
Joined: Tue Mar 07, 2017 8:17 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
Sabour7
Licensed Customer
Posts: 10
Joined: Fri Oct 23, 2015 6:23 am

Any Luck on the convertion?
randymills
Licensed Customer
Posts: 6
Joined: Fri May 20, 2016 7:06 am

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)
MountStone
Licensed Customer
Posts: 3
Joined: Wed Jul 06, 2016 9:55 am

Absolutely a lifesaver! Thank you very much for the hint with xrange and range!
User avatar
Kalua
Licensed Customer
Posts: 530
Joined: Fri Oct 11, 2013 2:13 am
Location: Caribbean Sea
Contact:

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 2025.1.1 Octane 2025.1 Build 0104, <<2 X 3090 + NVlink>>, Windows 10, X399, AMD TR 1950X, 128 GB RAM, NVIDIA SD 552.22
https://www.behance.net/PaperArchitect
User avatar
Kalua
Licensed Customer
Posts: 530
Joined: Fri Oct 11, 2013 2:13 am
Location: Caribbean Sea
Contact:

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 373 times
C4D 2025.1.1 Octane 2025.1 Build 0104, <<2 X 3090 + NVlink>>, Windows 10, X399, AMD TR 1950X, 128 GB RAM, NVIDIA SD 552.22
https://www.behance.net/PaperArchitect
poclin
Licensed Customer
Posts: 1
Joined: Sat Jul 02, 2016 3:17 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).
User avatar
Kalua
Licensed Customer
Posts: 530
Joined: Fri Oct 11, 2013 2:13 am
Location: Caribbean Sea
Contact:

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 2025.1.1 Octane 2025.1 Build 0104, <<2 X 3090 + NVlink>>, Windows 10, X399, AMD TR 1950X, 128 GB RAM, NVIDIA SD 552.22
https://www.behance.net/PaperArchitect
Post Reply

Return to “User requests”