Change Number component --> default into degrees instead of radians

Hi,

Question; I noticed when you insert a formula using sin, cos tan etc, inside a ‘number’ component it automatically calculates the value based on Radians instad of Degrees.

I understand I can deconstruct the formula and manually change into: Tan(rad(15)), see printscreen.

However there is probably a smarter way.

Maybe is there someone able to write a short python code, which automatically changes/calcultes with degrees instead of radians?

Just to make sure: it has to be a generic solution.

2025-02-15 Default Degrees instad of Radians in Number component.gh (5.8 KB)

Many thanks!

That idea sounds like it would break a lot of existing code that assumes (correctly in my opinion) that the Num component is indifferent about degrees vs. radians.

I’m pretty sure everything is calculated in radians.

You can convert with the Degrees component.

If you want a component to use degrees by default, create your own user object with the Angle input set to degrees and your own custom value in degrees.

More than just the Num component, what about other components and expressions?

1 Like