Page 1 of 1
Macrorecorder doen't load texture file
Posted: Tue Jan 24, 2017 12:30 pm
by mbetke
I I try to record some steps for a script which I need for some automatation and I created a material. The problem is I can't get the texture to load. The recorder doesn't record Octane texture assignment. It worked well in Scanline.
This is what gets recorded:
Code: Select all
sceneMaterials["Wood"].diffuse_input_type = 2
sceneMaterials["Wood"].diffuse_tex = RGB_image ()
Now I think I need one more line to the texture path and texture. I hope this is not to special and someone can hep here.

Re: Macrorecorder doen't load texture file
Posted: Fri Jan 27, 2017 12:31 pm
by paride4331
Hi Mbetke,
I asked more information to developers, To expose a property of a material, you will want to use the setProperty function (there is also a getProperty function if you need that).
Example: setProperty $.material.diffuse_tex "filename" "[filepath_of_the_texture_file]"
You may want to use "getProperty" and/or "getAttribute" calls to handle checks for attributes
so it would be something like
setProperty $sceneMaterials["Wood"].diffuse_tex "filename" ""c:/dummy.png""
not sure about the '$' sign
they will investigate why this can not be recorded by the macro recorder.
Regards
Paride
Re: Macrorecorder doen't load texture file
Posted: Fri Jan 27, 2017 12:53 pm
by mbetke
Thanks.

Really nice.
Re: Macrorecorder doen't load texture file
Posted: Sun Jan 29, 2017 10:55 am
by mbetke
I wonder if there is list of Mascript commands which are related to Octane. I'm no scripter at all but maybe can doo small stuff on my own.