ZBrushCentral

Zscript error list

Hi, I’ve been getting an error when running a zscript which I can’t get around simply due to the fact that I can’t read the full Note… I’ve attached a screen grab below

image

The error window isn’t re-sizable so I can’t read the whole Zscript Note.
“The number of inputs exceeds the number of inputs” isn’t a lot to go on.
Any help would be appreciated. Thanks :slight_smile:

That error can crop up for various reasons. I think the most likely explanation is that you have some sort of recursive behaviour when calling that routine. The actual text is something like “The number of inputs exceeds the number of inputs defined in the target routine” but that’s clearly not the problem with the code showing on the note.

For example, this code will throw up the error:

[RoutineDef,TestFunction,
   [Note,"Hello World"]
   [RoutineCall,TestFunctionB]
]

[RoutineDef,TestFunctionB,
   [RoutineCall,TestFunction] //recursive behaviour not allowed by zscript
]

[IButton,TestIt,"Do it",
   [RoutineCall,TestFunction]
]

HTH,
Marcus

Ah thanks for explaining Marcus! Super helpful as usual!

1 Like