Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

3ds max syntax error:at bad,expected factor

3ds max syntax error:at bad,expected factor

Anonymous
Not applicable
14,577 Views
10 Replies
Message 1 of 11

3ds max syntax error:at bad,expected factor

Anonymous
Not applicable

Capture.JPG

 

appear dialog as above..please help Smiley Surprised

0 Likes
14,578 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable

hey, are you done with this error ?

 

0 Likes
Message 3 of 11

malcomarmstrong
Advocate
Advocate

When this happens, you can look at the Maxscript listener(F11) and this will give you some better feed back on the erros (sometimes)

 

Usually, this happens as a piece of code in a script has been changed (possibly without knowing) and saved on exit. next time Max starts, it will thorow an error like this as it cannot complete the code to embed it properly.

 

Identify which script it is and replace it with a back up copy if you have one. It may be a button you made, but fundamentally, it is erroring with some line of code in a callback script or something initialised during start up.

 

Try that first

Message 4 of 11

miledrizk
Advisor
Advisor

Hi,

 

Try this: close Max, and go to: C:\Users\YourUserName\AppData\Local\Autodesk\3dsMax\20xx - xxbit,

 

Rename the folder called ENU to something else like ENU.old, and reopen Max,

 

Note: AppData is a hidden folder, so you need to enable Show Hidden Files And Folders from

the control panel

------------------------------------------------------
miledrizk@gmail.com
3DS Max 2025, V-Ray 7
3DS Max user since 2003 (3DS Max 7)
V-Ray user since 2008 (V-Ray 1.47)
Message 5 of 11

Anonymous
Not applicable

Thank you! it works.

0 Likes
Message 6 of 11

Anonymous
Not applicable

dear malcomarmstrong  

thank you for your comment,

after I follow your comment, 3dmax appear this tab in scripts

-- Error occurred in anonymous codeblock; filename \D\00 Do Nguyen\2.Iibrary\soft\MAXscript\PolyAnimator.ms; position: 13; line: 6
-- MAXScript FileIn Exception:
-- Syntax error: at <, expected <factor>

What I have to do next?

0 Likes
Message 7 of 11

denisT.MaxDoctor
Advisor
Advisor

there is an error in the code ... the only way to fix it is to fix the error. We cannot do this without seeing all the code.

 

if you can't show all the code, try to show lines... let's say from 0 to 50. Maybe it will be enough to find the problem

 

Message 8 of 11

Anonymous
Not applicable

Dear MaxDoctor  

I'd like to send sript line 0~50

pls see image attached

thank you so mucherror.jpg

 

0 Likes
Message 9 of 11

denisT.MaxDoctor
Advisor
Advisor

the max script file you show (PolyAnimator.ms) is not MaxScript file. This file is probably a part of some tool "loading mechanism". Although it has a .MS extension, it is not an executable script. Without looking at the entire tool (all setup files), it is impossible for anyone other than the developers of these scripts to solve your problem.
That is, you need to contact those who wrote these scripts (this tool), or provide all the code (all files), or give a link to the place where you got this tool.

Message 10 of 11

Anonymous
Not applicable

Thank you so much for your comment !!!

 

I get this one from youtube (https://www.youtube.com/watch?v=AohxaX5doMg&t=95s)

maybe its error, but I really can not understand that why somebody can use it but I can not !!!???

anyway, I thank you so much !

 

0 Likes
Message 11 of 11

denisT.MaxDoctor
Advisor
Advisor

You somehow accidentally overwrote the script file. Download this file again from the link under the video, and be careful next time - do not save the data with the name of your script file.