Message 1 of 5

Not applicable
11-20-2020
12:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Im having trouble understanding what the problem is with my code. the code written below worked without any problems before. Windows 10 restarted on its own for updates and now my code dosent work. I get the error below when I try to run my script. if i remove boneColor = color 86 86 86 the code will run, but when I put this code back in it stops working and I get the following error. Im using Max 2019.
-- Error occurred in anonymous codeblock; filename: D:\maxScripts\rigTools_3_0.ms; position: 592; line: 9
-- Syntax error: at =, expected name
-- In line: boneColor = c
rollout boneTools "Bone Tools" width:162 height:300
(
button 'setUpMuscleBone' "Set Up Muscle Bone" pos:[10,10] width:80 height:40 align:#left
button 'setUpMuscle' "Set Up Muscle" pos:[10,60] width:80 height:40 align:#left
edittext baseName "Base Name" pos:[100,10] text:"boneSkin" fieldWidth:75 labelOnTop:true
edittext side "Side" pos:[100,60] text:"empty" fieldWidth:75 labelOnTop:true
edittext boneName "Bone Name" pos:[100,110] text:"empty" fieldWidth:75 labelOnTop:true
checkbox 'muscle' "Is Muscle" pos:[190,10] checked:false width:118 height:42 align:#left
boneColor = color 86 86 86
on muscle changed state do
(
if muscle.checked == true then
(
baseName.text = "muscle"
boneColor = color 255 165 0
)
else
(
baseName.text = "boneSkin"
boneColor = color 86 86 86
)
)
I
Solved! Go to Solution.