Notifications
Clear all

[Closed] list of parameters?

In the same order, i wanna check the existence of the property in the definition of a CA.
I mean, if you have a CA property like “$.modifiers[myCustAtt].foot” for example, if the slider “foot” exists on your CA, it will return the value and if not, you will have an error message (and not unfortunately “undefined” ).
So, i have searched if there is a function to test that, but i didn’t find anything. i don’t know if there is a simple way like “if $.modifiers[myCustAtt].foot !=undefined do …” or something similar to do it.

thks, remi

 JHN

Use a try()catch() function to trap errors when trying to acces the value.

-Johan

thanks, it’s perfect!

Page 2 / 2