Page 1 of 1

mel usage with octane materials

Posted: Wed Jan 29, 2014 3:55 pm
by sampakinpa
Hello,
How can I get an atribute value (getAttr) or set an atribute value (setAttr) in octane material using mel?
for example:

getAttr "Gold_White_Logo.Specular";
I get: // Error: line 1: The data is not a numeric or string value, and cannot be displayed. //

or

setAttr "Gold_White_Logo.Specular" 0.8;
I get: // Error: line 1: setAttr: 'Gold_White_Logo.Specular' is not a simple numeric attribute. Its values must be set with a -type flag. //


I tried to use the `-type octaneTextureData` flag, but it did not worked for me.

what is the right syntax? where can I get more information about utilizing octane with mel the right way?

Thanks
Ethan

Re: mel usage with octane materials

Posted: Wed Jan 29, 2014 9:11 pm
by JimStar
Get and set Octane pin with Float Texture default value:

Code: Select all

octane -gtexfpin;
octane -gpf;

octane -texfpin 0.7;
octane -tfp 0.7;
Get and set Octane pin with RGB Texture default value:

Code: Select all

octane -gtexcpin;
octane -gpc;

octane -texcpin 0.7 0.5 0.9;
octane -tcp 0.7 0.5 0.9;

Re: mel usage with octane materials

Posted: Sun Feb 02, 2014 7:15 am
by sampakinpa
Thanks.
How can I get all the mel switches of the `octane` command in maya?

Re: mel usage with octane materials

Posted: Wed Feb 26, 2014 8:56 pm
by dionysiusmarquis

Code: Select all

octane -help;

Re: mel usage with octane materials

Posted: Thu Feb 27, 2014 8:59 am
by sampakinpa
Yes, thanks. :)

Re: mel usage with octane materials

Posted: Wed Apr 22, 2015 6:17 pm
by mango
I am trying to use the mel command:
octane -gtexcpin <pin name>

I have been unsuccessful, probably because I am giving it the wrong pin name. Let's say I have an existing octane material called OctaneDiffuseMaterial30. Any of the following commands:
octane -gtexcpin octaneDiffuseMaterial30
octane -gtexcpin "octaneDiffuseMaterial30"
octane -gtexcpin whatever
generate this response:
// Error: Octane: error getting attribute value: //
// Result: -1 -1 -1 //

I am still learning mel. Can someone please tell me what I am doing wrong? Also, is there any documentation on the mel/octane commands? The only place I found them is on this forum.

Thanks.

Re: mel usage with octane materials

Posted: Wed Apr 22, 2015 6:36 pm
by mango
I have also tried:
octane -gtexcpin octaneDiffuseMaterial30.outColor
and I get the following response:
// Error: Octane: error getting attribute value: (kInvalidParameter): Object does not exist //
// Result: -1 -1 -1 //