Python, Cinema 4D, and materials

A public forum for discussing and asking questions about the demo version of Octane Render.
Forum rules
For new users: this forum is moderated. Your first post will appear only after it has been reviewed by a moderator, so it will not show up immediately.
This is necessary to avoid this forum being flooded by spam.
Post Reply
logicielumiere
Licensed Customer
Posts: 4
Joined: Sat Oct 17, 2015 12:39 am

I'm looking into Octane for a client, and I've done a few searches on the forum and through the docs, but I seen nothing yet that states a good way to create materials through code. I'd like to create some conversion scripts and I'm trying to figure out how I can build an Octane material through C4D's python.
logicielumiere
Licensed Customer
Posts: 4
Joined: Sat Oct 17, 2015 12:39 am

Yeah, I figured it out by myself after playing around with the ideas some of my other conversion scripts used. Luckily you guys coded yours in a paradigm similar to the way C4D standard materials are coded. Got a nice Vay->C4D->Arnold->Octane converter and material toolset plugin going now. The thing that worried me was your node editor, I think you guys custom built it and I know the Arnold guys have a special way of accessing their materials so that was the bother.
User avatar
aoktar
Octane Plugin Developer
Posts: 16068
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

Yes that's a good attention. I've spent all effort to go closer to C4D material concept without breaking standards. Also Node Editor does not need any special interface or workaround. It can directly display/modify material's internal node hierarchy without breaking anythings. My only warning will be about setting file names in ImageTexture nodes. It's different than XBitmap type of C4D. You can see in imagetexture.res file. Please let me know if you need any extra help. I wish to provide some example scripts to extend plugin on future.
Octane For Cinema 4D developer / 3d generalist

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

See my new special purpose script.
viewtopic.php?f=87&t=56039
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Post Reply

Return to “Demo Version Questions & Discussion”