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
mel usage with octane materials
Moderator: JimStar
- sampakinpa
- Posts: 110
- Joined: Mon Dec 03, 2012 11:46 am
- Contact:
2x Xeon E5-2620, 32 GB RAM, 4X GTX1080ti, Windows 10, Octane 3 for Maya 2018, Radeon HD6450 for disply BRIO Animation ltd
Get and set Octane pin with Float Texture default value:
Get and set Octane pin with RGB Texture default value:
Code: Select all
octane -gtexfpin;
octane -gpf;
octane -texfpin 0.7;
octane -tfp 0.7;
Code: Select all
octane -gtexcpin;
octane -gpc;
octane -texcpin 0.7 0.5 0.9;
octane -tcp 0.7 0.5 0.9;
- sampakinpa
- 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?
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
- sampakinpa
- 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
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.
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.