Search found 2 matches

by worldcreator
Mon Apr 03, 2023 10:19 am
Forum: Help / Tutorials
Topic: Create layered material with python
Replies: 1
Views: 834

Re: Create layered material with python

Quick update. I was able to connect shaders and access the values of the MaterialLayer shader. The IDs in MaterialLayer.h seem to be outdated (at least in OctaneRender For Cinema 4D 2022.1-[R10]).

The correct IDs would be:

MATLAYER_DIFFUSE_LNK = 1406 # shader
MATLAYER_TRANSMISSION_LNK = 1415 ...
by worldcreator
Thu Mar 30, 2023 10:01 am
Forum: Help / Tutorials
Topic: Create layered material with python
Replies: 1
Views: 834

Create layered material with python

Hey,
I'm trying to create a layered material via python. So far adding the Layered Material, Material Layer and general nodes works fine. But I encounter an issue when I try to connect everything together...

from typing import Optional
import c4d

doc: c4d.documents.BaseDocument
op: Optional[c4d ...

Go to advanced search