# Transform property 'RotateAroundOriginTransform' not working in python

**URL:** https://discourse.paraview.org/t/transform-property-rotatearoundorigintransform-not-working-in-python/8798
**Category:** ParaView Support
**Created:** [January 19, 2022, 4:02pm UTC](https://discourse.paraview.org/t/transform-property-rotatearoundorigintransform-not-working-in-python/8798 "2022-01-19T16:02:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rasunag27](https://discourse.paraview.org/user_avatar/discourse.paraview.org/rasunag27/32/4636_2.png) [@rasunag27](https://discourse.paraview.org/u/rasunag27)
#### Post date: [January 19, 2022, 4:02pm UTC](https://discourse.paraview.org/t/transform-property-rotatearoundorigintransform-not-working-in-python/8798/1 "2022-01-19T16:02:21Z")

</div>

Hi,

I have an stl file which needs to be rotated about an axis with origin.

For this, based on question asked previously, I used pv nightly version. From paraview, I can do it correctly, but I am facing a problem through python code. Here is the code and error.

Code:

```auto
meshstl = STLReader(registrationName='mesh.stl', FileNames = 'mesh.stl')
transform1 = Transform(registrationName='Transform1', Input=meshstl)
transform1.Transform = 'RotateAroundOriginTransform'
transform1.Transform.Originofrotation = [0.094, 0.035, 0.0315]
transform1.Transform.Rotate = [35.0, 0.0, 0.0]

```

Error:

`ValueError: RotateAroundOriginTransform is not a valid value for attribute Transform.`

With option of `Transform` instead of `RotateAroundOriginTransform`, code runs. But I specifically needed `RotateAroundOriginTransform` to work via python.

How to overcome this error?

Regards,  
Sunag R A.
