==== Octane useful scripts ====

Sub forum for help and tutorials.

Moderators: aoktar, ChrisHekman

Post Reply
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

This is a new topic for user or developer scripts. Please don't hesitate to contribute.
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

This is a special script. It includes an example scene and description. See attached image.
Also this is very good example to show how you can create, connect and modify Octane materials and images.
Attachments
clone_mix_network_modify_amount_imagepaths.zip
(211.52 KiB) Downloaded 3643 times
a2.jpg
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

Creating octane material with an imagetexture in diffuse channel
Attachments
create-octmat.zip
(441 Bytes) Downloaded 2766 times
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

brasco Octane Menu (script)
LINK: viewtopic.php?f=30&t=56525

Image
Image
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

Copies the parameters of camera imager section from Octane camera tag to Octane Settings window.
Attachments
camtag-to-settings.zip
(638 Bytes) Downloaded 2581 times
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
ptunstall
Licensed Customer
Posts: 153
Joined: Thu Jun 04, 2015 1:36 am

I don't suppose you have a script that will export .orbx (single frame) files? I am trying to export from cinema4d via command line in windows, and then render the orbx file in stand alone on our linux farm.
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

ptunstall wrote:I don't suppose you have a script that will export .orbx (single frame) files? I am trying to export from cinema4d via command line in windows, and then render the orbx file in stand alone on our linux farm.
You can export from Live Viewer and commandline. Did you tried this? https://docs.otoy.com/Cinema_4D_Plugin_ ... %7C_____27
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
ptunstall
Licensed Customer
Posts: 153
Joined: Thu Jun 04, 2015 1:36 am

aoktar wrote:
ptunstall wrote:I don't suppose you have a script that will export .orbx (single frame) files? I am trying to export from cinema4d via command line in windows, and then render the orbx file in stand alone on our linux farm.
You can export from Live Viewer and commandline. Did you tried this? https://docs.otoy.com/Cinema_4D_Plugin_ ... %7C_____27

That should work for me, thanks!
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

Xpresso setup for Degree to hdri offset value in octane sky environment.
Attachments
hdri-degree-xpresso.rar
(95.38 KiB) Downloaded 2098 times
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
mikeadamwood
Licensed Customer
Posts: 164
Joined: Sat Sep 17, 2016 11:51 am

Aoktar would there be a way of creating a script which automatically loads in PBR image textures to the PBR template material, based on a specified prefix within a folder?

This is a task I have to repeat again and again and for large scenes with many objects it's a huge task.

Example would be that I have a folder consisting of textures from Substance painter/Quixel or whatever package:

Folder:
chair_COLOR.jpeg
chair_NORMAL.jpeg
chair_SPECULAR.jpeg
chair_ROUGHNESS.jpeg

It creates a material based on the pbr template and grabs every map based on prefix and puts it in the corresponding slot within the pbr material shader from the LiveDB.

I think I could create something like this with the Cinema4D python SDK, but I'm not sure how to generate Octane materials via Python? I've little to no experience with Python, but knowledge and experience with other coding languages so I understand how this could potentially work by passing over variables from a user input.
Windows 11 Pro | ASUS Pro WSX80E | AMD Threadripper Pro 5975WX 32-Core | 256GB Micron 8x32GB 3200MHz ECC | 2x PNY RTX6000 ADA
Post Reply

Return to “Help / Tutorials”