-
Detect whether array or number is needed?
Hi. I have an expression that needs to work for basically all parameters. The expression returns a number, but I want that number to be of dimension 2 if needed. So if the expression returns the number 50, it should return 50 if the expression is in a Rotation parameter, and [50,50] if in the Scale parameter. I’ve tried the catch error statement but that doesn’t seem to work for this error. If I put the following code in the Scale parameter, I still get an error. Is there another way to detect if an array or number is needed?
Thank you for your time.try
{ 50 }
catch (error)
{ [50,50] }