MoveObjectParallelFaces, AlignFaces, RotateGroupCentre, Move

zip / doc updated. See comments above and on top message.

2009/03/20 :
1) Scripts adapted and expanded for 3DC 7.2
2) New script : FlattenFace
3) While testing MovePointOnPlane and MoveObjectParallelFaces for 3DC 7.2, the 7.1 versions were re-written (documentation and zip updated)

2009-03-06 update:
1) Updated MovePointOnPlane
2) New zip of files provided (see down the topic)
3) Link to documentation (see down the topic)
3) Next step: test the 7.2 versions of the scripts

The coming 3DC 7.2 allows for multiple selections among different objects.
Often there is a need to align faces of 2 objects.

I wrote MoveObjectParallelFaces for 3DC 7.1, so faces of only one object can be selected. I’ll convert and adapt the script when 3DC 7.2 is released.

Here are examples of what can be done (the first one was the starting point of my decision to write a script).
Let’s say I have a cab console and I want to add a CRT monitor (images from a stripped down version of a 3D cab currently being built; it is a simulation due to current 7.1 limitations):

I select the front face of the CTR monitor, the targeted face on the cab console, enter a shift value of 2cm and apply MoveObjectParallelFaces. The CRT console is moved to the center of the selected can console face:

Now, after clicking on the object coordinates icon, I just need to move the monitor in the yz plane to the right location:

If no shift is entered, the object is just rotated in place (example using 3DC 7.1):


I updated the script to deal with the selected groups and the children.
It works OK:


New script (again, it will be more useful with 3DC7.2 multiple object selection):
Align the center of a first selected face to the center of a second face along the second face normal.
If the faces are parallel, both faces will be in the same plane.

Rotate a group axis system so that one axis is in the same direction or in the opposite direction of a selected face normal or the bisector of the 2 faces normal.

Examples of use:
– A door is tilted (faces not parallel to world axis sytem) and ‘normalize groups’ was applied.
I apply the script to have faces parallel to the object axis system
Now I can easily scale the object along one axis.

– The object was created with an axis system which orientation is not correct.
Select 2 faces from an object which bisector is pointing in the same direction as the desired X axis direction.


Thanks for these Dom – looking forward to seeing more <!– s:) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /><!– s:) –>

One suggestion to help other users – you could zip the .cs file and add it as an attachment to the forum post.


Point 1 is not correct. The shape is distorted.
I put point 1 in the same plane as points 2 to 4 using the same Y as point2.


2009/03/06 update: There is one more step in the process in order to select the reference point.

Zipped script files: see link below.

Link to updated documentation – 2009/03/20

7.1 Scripts updated (MovePointOnPlane and MoveObjectParallelFaces) and new script FlattenFace.

New script : [b:2s3otrt0]FlattenFace[/b:2s3otrt0] (Flatten a face so that all points have the same X, Y or Z)


[b:6fu67eyn]MovePointOnPlane[/b:6fu67eyn] with 3DC 7.2 alpha4



[b:2c5qfjg9]MoveObjectParallelFaces[/b:2c5qfjg9] with 3DC 7.2 alpha4


You must be logged in to reply in this thread.