mel usage with octane materials

Autodesk Maya (Plugin developed by JimStar)

Moderator: JimStar

Post Reply
sampakinpa
Licensed Customer
Posts: 110
Joined: Mon Dec 03, 2012 11:46 am
Contact:

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
2x Xeon E5-2620, 32 GB RAM, 4X GTX1080ti, Windows 10, Octane 3 for Maya 2018, Radeon HD6450 for disply BRIO Animation ltd
User avatar
JimStar
OctaneRender Team
Posts: 3813
Joined: Thu Jul 28, 2011 8:19 pm
Location: Auckland, New Zealand

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;
sampakinpa
Licensed Customer
Posts: 110
Joined: Mon Dec 03, 2012 11:46 am
Contact:

Thanks.
How can I get all the mel switches of the `octane` command in maya?
2x Xeon E5-2620, 32 GB RAM, 4X GTX1080ti, Windows 10, Octane 3 for Maya 2018, Radeon HD6450 for disply BRIO Animation ltd
User avatar
dionysiusmarquis
Licensed Customer
Posts: 159
Joined: Mon Nov 04, 2013 9:29 pm

Code: Select all

octane -help;
sampakinpa
Licensed Customer
Posts: 110
Joined: Mon Dec 03, 2012 11:46 am
Contact:

Yes, thanks. :)
2x Xeon E5-2620, 32 GB RAM, 4X GTX1080ti, Windows 10, Octane 3 for Maya 2018, Radeon HD6450 for disply BRIO Animation ltd
mango
Licensed Customer
Posts: 6
Joined: Fri Dec 12, 2014 7:49 pm

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.
mango
Licensed Customer
Posts: 6
Joined: Fri Dec 12, 2014 7:49 pm

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 //
Post Reply

Return to “Autodesk Maya”