The python docs, "tSXPython.pdf", has an "AxesRotation" attribute listed for objects.
This is really "AxesOrientation"
Python Documentation error
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
- Cellulo
- Lieutenant
- Posts: 915
- Joined: 27 Sep 2012, 07:48
- Type the number ten into the box: 9
- Location: France
- Contact:
Re: Python Documentation error
Thanks Clintonman, this mean AxesRotation attribute don't exist or only AxesOrientation attribute exist ?, in the tsxPython doc it's at the page 14.
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Python Documentation error
Only AxesOrientation exists. AxesRotation in the doc is the wrong name.
- Cellulo
- Lieutenant
- Posts: 915
- Joined: 27 Sep 2012, 07:48
- Type the number ten into the box: 9
- Location: France
- Contact:
Re: Python Documentation error
Thanks, i will change that in the doc inside the legacy edition.
Re: Python Documentation error
@Clinton
I was using your python script today
On first run, it worked as expected
After using again, at some point, the target Object disappeared from the Model's window
Then at some point, Model's window appeared blank
IE: No wireframe Grid or objects
Screenshot shows the target object in the Info View Model scn attached
I was using your python script today
Code: Select all
import trueSpace
doc = trueSpace.GetActiveDocument()
doc.ClearOutTxt()
obj = doc.CurrentSelection()
axrotation = obj.AxesOrientation
print("Select the target object to apply copied Axis Rotation")
def onselectionchanged():
global axrotation
obj = doc.CurrentSelection()
obj.AxesOrientation = axrotation
doc.ClearOutTxt()
trueSpace.Stop()
After using again, at some point, the target Object disappeared from the Model's window
Then at some point, Model's window appeared blank
IE: No wireframe Grid or objects
Screenshot shows the target object in the Info View Model scn attached
- Attachments
-
- New Compressed (zipped) Folder.zip
- (52.58 KiB) Downloaded 89 times
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Python Documentation error
@trueBlue
Can't imagine what happened. Tried a few times without any problems.
Can't imagine what happened. Tried a few times without any problems.
Re: Python Documentation error
I have seen this happen several times
Maybe I encountered an unknown Python error
Or assigned the script to a selected object
I do notice after a successful run the Script Editor's Play button seems to be still active
Meaning you need to press the Stop button
Maybe I encountered an unknown Python error
Or assigned the script to a selected object
I do notice after a successful run the Script Editor's Play button seems to be still active
Meaning you need to press the Stop button