Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5834

ArrAxis Question for RotateObject - in Python

$
0
0

@Dean_Goldman wrote:

What is the proper syntax for choosing the ArrAxis in the context of rs.RotateObject?

My script is stuck producing the default Z-axis rotation, where I want to be able to control X and Y axis as well.

rotation_x, rotation_y, rotation_z = random.sample(range(0, 360), 3)
mesh = rs.RotateObject(mesh, center_point, rotation_x, axis="x", copy=False) # I have also tried using [1,0,0]

I have tried a variety of different ways. Does someone have the definitive answer?

Thank you!!

Here is the definition of RotateObject.
http://developer.rhino3d.com/api/rhinoscript/object_methods/rotateobject.htm

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5834

Latest Images

Trending Articles



Latest Images