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.

Getting error -- Syntax error: at ;, expected <factor> -- In line: )

Getting error -- Syntax error: at ;, expected <factor> -- In line: )

dawoodmuhamm
Community Visitor Community Visitor
1,314 Views
2 Replies
Message 1 of 3

Getting error -- Syntax error: at ;, expected <factor> -- In line: )

dawoodmuhamm
Community Visitor
Community Visitor

this is the script [attached] I have been running when it asks me to select the folder I select it after that it gives me this error. -- Syntax error: at ;, expected <factor> -- In line: )

0 Likes
1,315 Views
2 Replies
Replies (2)
Message 2 of 3

dmitriy.shpilevoy
Collaborator
Collaborator

I think returns in the beginning causing it. Because it is outside of function maybe?

You can run this and will get same error
if 2 == 2 then
(
messageBox "No 3ds Max files were found in the directory!"
return
)

0 Likes
Message 3 of 3

jeff
Collaborator
Collaborator

I am not a script expert... but,
It might be in this and similar code sections?

 

 

 if (baseBone1 == undefined) then
    (
        messageBox ("Base bone Bip01 not found in file: " + files[fileIndex])
        continue
    )
    -- Select all bones connected to base bone Bip01
    selectBones "Bip01"
    exportNumber = "1"

 

 

My first impression is that even if bone "Bip01" does not exist, you are still trying to select "Bip01". Does the scrip work if all the messageBox conditions are satisfied?

Max since 1992 (3d Studio) · Win 10-64 · Wintel workstation · 64 GB RAM · nVidia Quadro RTX 4000 · BB render garden via Deadline
0 Likes