Align and Distribute script for tS7.61
- Steinie
- Captain
- Posts: 2912
- Joined: 21 May 2009, 17:38
- Type the number ten into the box: 10
- Contact:
Re: Align and Distribute script for tS7.61
Thanks for this one Clinton! I can think of a lot of uses for it. Is there more than one undo or is that not possible?
I keep reading about how some of you like Model Side and some like the otherside. Well I like both sides! There are tools on both sides I find usefull.
I keep reading about how some of you like Model Side and some like the otherside. Well I like both sides! There are tools on both sides I find usefull.
- clintonman
- Captain
- Posts: 5429
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Align and Distribute script for tS7.61
Only one undo for when you run it and then notice the settings were wrong. The undo button runs the undo command a bunch of times to get back to the previous state.Steinie wrote: ↑29 Oct 2017, 16:00 Thanks for this one Clinton! I can think of a lot of uses for it. Is there more than one undo or is that not possible?
I keep reading about how some of you like Model Side and some like the otherside. Well I like both sides! There are tools on both sides I find usefull.
- clintonman
- Captain
- Posts: 5429
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Align and Distribute script for tS7.61
Update March 2020
fixed a bug - alignment relative to first selected or last selected, the first or last selected item was moving in some cases when it should not be moving at all.
http://clintons3d.com/plugins/truespace ... align.html
fixed a bug - alignment relative to first selected or last selected, the first or last selected item was moving in some cases when it should not be moving at all.
http://clintons3d.com/plugins/truespace ... align.html
- clintonman
- Captain
- Posts: 5429
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Align and Distribute script for tS7.61
January 2021
Update to work with new NURBS objects
Update to work with new NURBS objects
- the_ant
- Chief Petty Officer
- Posts: 149
- Joined: 02 Jun 2009, 09:26
- Type the number ten into the box: 0
- Location: Perugia - Italy
Re: Align and Distribute script for tS7.61
Hi Master of t.Space!
Have a question about Align functions in Modelspace
Is there a tsx plugin to align (in place) an axis to another for rotation?
Have a question about Align functions in Modelspace
Is there a tsx plugin to align (in place) an axis to another for rotation?
- clintonman
- Captain
- Posts: 5429
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Align and Distribute script for tS7.61
I don't know.
- the_ant
- Chief Petty Officer
- Posts: 149
- Joined: 02 Jun 2009, 09:26
- Type the number ten into the box: 0
- Location: Perugia - Italy
Re: Align and Distribute script for tS7.61
Could it to be possible in Workspace with your Align script?
(ie. i want that an object got same axes orientation of another without rotate it...so could move it parallel to source object in object-mode instead world or view-mode)
(ie. i want that an object got same axes orientation of another without rotate it...so could move it parallel to source object in object-mode instead world or view-mode)
- clintonman
- Captain
- Posts: 5429
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Align and Distribute script for tS7.61
No it's not possible from workspace. There is no common axis between model and workspace.
You could manually copy the rotation values from the first object to the axis of the second object using the object info panel along with the axes tool.
- clintonman
- Captain
- Posts: 5429
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Align and Distribute script for tS7.61
Here is a script that might help. Copy it into the python script manager "Scene"
Select the source object
Run the Scene script
Select the target object
The axes from the first will copy into the second.
It's a little awkward because the script manager switches to the selected item automatically.
Select the source object
Run the Scene script
Select the target object
The axes from the first will copy into the second.
It's a little awkward because the script manager switches to the selected item automatically.
Code: Select all
import trueSpace
doc = trueSpace.GetActiveDocument()
doc.ClearOutTxt()
obj = doc.CurrentSelection()
axrotation = obj.AxesOrientation
print("select target object")
def onselectionchanged():
global axrotation
obj = doc.CurrentSelection()
obj.AxesOrientation = axrotation
doc.ClearOutTxt()
trueSpace.Stop()
- the_ant
- Chief Petty Officer
- Posts: 149
- Joined: 02 Jun 2009, 09:26
- Type the number ten into the box: 0
- Location: Perugia - Italy
Re: Align and Distribute script for tS7.61
Thanks Clintonman
i will try it
..nevertheless it's strange nobody never thought about this function into a plugin...
i will try it
..nevertheless it's strange nobody never thought about this function into a plugin...