Position a node with python. at angle

Okeyyy,

I’d like to position a node at a given distance from another node respecting italic angle.

I need simple formula in python :slight_smile: You know… something like this:

y * math.tan( ( angle / 180 ) * math.pi )

can you F1?

theta=( -angle / 180 ) * math.pi
r=42 
secondPoint.x=firstPoint.x+r*math.cos(theta)
secondPoint.y=firstPoint.y+r*math.sin(theta)

OK. I did it. :smiley:

1 Like