Page 1 of 1
Python, Cinema 4D, and materials
Posted: Wed Aug 24, 2016 10:16 am
by logicielumiere
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.
Re: Python, Cinema 4D, and materials
Posted: Thu Aug 25, 2016 9:36 am
by bepeg4d
Hi logicielumiere,
actually there is not to much on this on the forum.
here are a couple of links about it:
viewtopic.php?f=30&t=48870&p=243143&hil ... on#p243143
viewtopic.php?f=30&t=43086&p=208809&hil ... on#p208809
ciao beppe
Re: Python, Cinema 4D, and materials
Posted: Sun Aug 28, 2016 4:35 am
by logicielumiere
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.
Re: Python, Cinema 4D, and materials
Posted: Sun Aug 28, 2016 5:18 pm
by aoktar
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.
Re: Python, Cinema 4D, and materials
Posted: Tue Aug 30, 2016 5:48 pm
by aoktar
See my new special purpose script.
viewtopic.php?f=87&t=56039