Metasequoia BBS

| New message | Normal | Tree |
Status
Tag
Keyword
[9662] Script editor / material poperty parameters
Done [Question,Who are you?] Response
how to change material poperty- parameters  when selecting model then it changes all the materials selected object only


for obj in ObjectEnum() do
  mat = MaterialGet(obj)
  MaterialSetAlpha mat, 1.00
  MaterialSetDiffuse mat, 0.80
  MaterialSetEmission mat, 0.75
  MaterialSetSpecular mat, 0.00
  MaterialSetPower mat, 5.00
  MaterialSetAmbient mat, 0.00
  MaterialSetReflection mat, 0.00
  MaterialSetRefraction mat, 1.00
end


Error code
Failed to execute a script in line 1.
Invalid syntax. (invalid syntax)
for obj in ObjectEnum() <<<do
2023-02-09 05:13

Show the middle 4 messages.

[9667] Re: Script editor / Administrator
What you are asking for is already in the response I have already given, but I will state the same sentence again.

The 'Help' menu in the script editor contains descriptions of classes, functions, and properties.

Please check within the help to see what properties MQObject, MQMaterial, etc. have, and what types they are.
2023-02-10 15:49
Title
Name
Mail address for renponse notification A mail will be sent when the response is written. This address will be not shown after you post.
Tag Please select from a preset or input arbitrary comma-delimited tags.
Message

Now file attachment is not available temporarily.