Align and Distribute script for tS7.61

free scripts, plugins, models, textures
User avatar
Steinie
Captain
Posts: 2910
Joined: 21 May 2009, 17:38
Type the number ten into the box: 10
Contact:

Re: Align and Distribute script for tS7.61

Post by Steinie »

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.
User avatar
clintonman
Captain
Posts: 5422
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

Post by clintonman »

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.
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.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
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

Post by clintonman »

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
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
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

Post by clintonman »

January 2021

Update to work with new NURBS objects
Clinton Reese

http://clintons3d.com
User avatar
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

Post by the_ant »

Hi Master of t.Space! :worship:

Have a question about Align functions in Modelspace

Is there a tsx plugin to align (in place) an axis to another for rotation?

:bananahi:
User avatar
clintonman
Captain
Posts: 5422
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

Post by clintonman »

the_ant wrote: 10 Jan 2021, 09:36 Hi Master of t.Space! :worship:

Have a question about Align functions in Modelspace

Is there a tsx plugin to align (in place) an axis to another for rotation?

:bananahi:
I don't know.
Clinton Reese

http://clintons3d.com
User avatar
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

Post by the_ant »

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)
User avatar
clintonman
Captain
Posts: 5422
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

Post by clintonman »

the_ant wrote: 11 Jan 2021, 14:04 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)
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.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
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

Post by clintonman »

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.

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()
Clinton Reese

http://clintons3d.com
User avatar
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

Post by the_ant »

Thanks Clintonman :worship:

i will try it :bananatyping:

..nevertheless it's strange nobody never thought about this function into a plugin...

:bananahi: :worship: :worship:
Post Reply