Message 1 of 7
Not applicable
10-18-2021
10:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I read (Max help) that in a block I can use "local" before the variable, or not (and Maxscript understands what kind of variable it is).
local variable1 = 10
or
variable1 = 10
BUT in my rollout, if I don't write "local", I get :
-- erreur de syntaxe: à =, attendu name
-- dans ligne: variable1 = 1
(mixed english and french)
So, I write "local",
BUT when I do a simple addition (with the same variable) I get another error :
local variable1 = 10
local variable1 = variable1 + 20
I get :
-- Non ""+"" fonction pour undefined
😩😩😩😩
Thanks for your help
Solved! Go to Solution.
