Syntax and units used in various nodes.

Posted:
Fri Jan 07, 2022 12:56 pm
by birdseye
Is there a list available of what syntax and or units that should be used in various nodes eg. 'iif' v 'if' or degrees v radians?
Re: Syntax and units used in various nodes.

Posted:
Fri Jan 07, 2022 1:32 pm
by Okke Verbart
Hey Ian - I'm not aware of a documented list, but from my experience:
Degrees are used in the pCustom, pCustomforce, CustomVertex and Custom Tool, but only on the channel/particle/intermediate/setup/vertex tabs, not the numbers tab.
Also, in general, the expression modifier (Point Out, Numberout etc) uses degrees instead of radians
Radians are used in all other places as far as I know
iif versus if is as per above (if in pCustom, Custom etc, rest has iif)
Re: Syntax and units used in various nodes.

Posted:
Fri Jan 07, 2022 1:38 pm
by Okke Verbart
Sorry, one more thing....if you want to use radians instead of degrees in the custom tool etc, you can use something like sinr (instead of sin) or cosr etc.
Re: Syntax and units used in various nodes.

Posted:
Fri Jan 07, 2022 1:51 pm
by birdseye
Thank you Okke, I guess I should make my own list as I go along, although it's good to know that there does appear to be general rules.