Testing Beta 0.87b (SDK 1.20) **updated 04.10**

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

User avatar
krzychuc4d
Licensed Customer
Posts: 79
Joined: Sun Jan 24, 2010 9:52 pm
Contact:

Hi Aoktar,

not sure if anyone reported a bug
with function "remove unused materials"

example:
create mix material and place two other materials inside MIX
right after applying "remove unused materials"
all materials inside MIX material are gone

strange behaviour

I'm using latest 0.87b.

thanks,
---
http://www.3structures.com
https://www.facebook.com/3structures
Ryzen 7 2700X / 32GB RAM / RTX 4070 @Win10 64Bit
SVITAdmin
Licensed Customer
Posts: 206
Joined: Mon Aug 26, 2013 5:54 pm
Location: Rochester, NY
Contact:

krzychuc4d wrote:Hi Aoktar,

not sure if anyone reported a bug
with function "remove unused materials"

example:
create mix material and place two other materials inside MIX
right after applying "remove unused materials"
all materials inside MIX material are gone

strange behaviour

I'm using latest 0.87b.

thanks,
This is a pretty well known issue. Bottom line is, i don't think C4D can understand the mix material. It sees that the mix material is applied, but then assumes the materials inside the mix material are not being used because they are not specifically applied to any objects. I have managed to deal with this by being very particular with assigning materials different layers to keep track of them.
1 Dell Z840 with 2x Titan XP's
2 Digital Storm Hailstorm/Win8/32GB/EVGA Titan x4
2 Server blades with 4 Tesla K80's
TonyBoy
Licensed Customer
Posts: 238
Joined: Thu Dec 13, 2012 4:47 pm

I reckon you could assign the materials you want to save from deletion to dummy objects that are invisible.
User avatar
shawnfrueh
Licensed Customer
Posts: 157
Joined: Thu Jan 31, 2013 10:29 pm

Hi Aoktar, I have a quick question. I'm using python to try and get/place the image texture into an OctaneSky.

Using a python tag I can get up to the imageTexture using this code:

def main():
pass #put in your code here
tex = op.GetObject().GetFirstTag()

print tex[c4d.ENVIRONMENTTAG_TEXTURE]


How can I get further/ Caqn this be implimented to get with python and or use all inputs as ports in Xpresso?

Thanks,

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

shawnfrueh wrote:Hi Aoktar, I have a quick question. I'm using python to try and get/place the image texture into an OctaneSky.

Using a python tag I can get up to the imageTexture using this code:

def main():
pass #put in your code here
tex = op.GetObject().GetFirstTag()

print tex[c4d.ENVIRONMENTTAG_TEXTURE]


How can I get further/ Caqn this be implimented to get with python and or use all inputs as ports in Xpresso?

Thanks,

-Shawn
do you want to acces texture parameters? You can drop the texture slot to xpresso, but filename is not accesable with xpresso.
This code will show all any parameters with a different way

Code: Select all

import c4d

OCTANE_ENVIRONMENT_TAG = 1029643

def main():
    tag = op.GetObject().GetFirstTag()
    while tag:
        if tag.GetType()==1029643:
            tex = tag[c4d.ENVIRONMENTTAG_TEXTURE]
            print tex[c4d.IMAGETEXTURE_FILE]
            print tex[c4d.IMAGETEXTURE_POWER]
            print tex[c4d.IMAGETEXTURE_GAMMA]
            print tex[c4d.IMAGETEXTURE_SCALE]
            print tex[c4d.IMAGETEXTURE_INVERT]
            print tex[c4d.IMAGETEXTURE_MODE]
            print tex[c4d.IMAGETEXTURE_SCALEX]
        tag = tag.GetNext()
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
shawnfrueh
Licensed Customer
Posts: 157
Joined: Thu Jan 31, 2013 10:29 pm

Thanks aoktar that gave me what I was looking for! I needed a way to dynamically change the texture file that the Environment tag uses.
User avatar
kirbyzz
Licensed Customer
Posts: 26
Joined: Mon Apr 01, 2013 7:09 pm
Location: Berlin
Contact:

no body any idea to set up a refraction index? ...i have to simulate water in closeup - need to setup refraction- index of 1.333
ahmet - whre is this paremeter hidden in mat-setup??
User avatar
aoktar
Octane Plugin Developer
Posts: 16063
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

kirbyzz wrote:no body any idea to set up a refraction index? ...i have to simulate water in closeup - need to setup refraction- index of 1.333
ahmet - whre is this paremeter hidden in mat-setup??
what about specular material->index?
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
User avatar
kirbyzz
Licensed Customer
Posts: 26
Joined: Mon Apr 01, 2013 7:09 pm
Location: Berlin
Contact:

that´s it thanx...rigth specular matrial index works...

thanx
fabian
miohn
Licensed Customer
Posts: 749
Joined: Sun Jun 06, 2010 3:00 pm

Hi,

which version do I need for motion blur?

Have 0.87b but cannot find where to activate it.

regards
Mike
Post Reply

Return to “Maxon Cinema 4D”