Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / I am looking for a script to copy sub object face or vert or edge transforms and paste to an onject or another objects sub object
  RSS 2.0 ATOM  

I am looking for a script to copy sub object face or vert or edge transforms and paste to an onject or another objects sub object
Rate this thread
 
55921
 
Permlink of this thread  
avatar
  • Location: Saint Joseph, Michigan
  • Total Posts: 419
  • Joined: 22 August 2006 03:13 PM

In other words, I would like to be able to copy all three coordinates in either edge, vertex or face on even and objects pivot location X Y Z to another object with out having to change back and forth from one objects to the other object. Mainly to use for modeling.
If I want to copy all three X Y and Z from one vertex on a box, and then past all three to another objects vertex.
Take box A go to sub object vertex and copy a vertex XYZ.
Thje exit Sub object on that object and choose another object B
Enter sub object Vertex or Edge or Face or even the Top Level Pivot Point, and paste the coordinates.
I know I have rambled quite a bit but I am very tired. :-)
Thanks for anyone who has a script that would do this or who can point me to one.
Regards, Tom



Dell XPS 8100
Intel I 7, 860 @ 2.80 Ghz 8 cores in the task manager
16 GB ddr3 Ram
NVidia GeForce GTX 480 1.5 Gig ram PCI Express
NVidia GeForce 8400 GS 512 MB ram PCI
Nitrous and Shade back and forth 850 Watt Black Widow
Cache memory 8 Megs
Sata 7200, 1.5 TB
Sata 7200, 1.0 TB
4 @ Samsung Sync Master SA550 LED 27” Widescreen Monitors
64 Bit Windows 7 Home Premium

Replies: 0
avatar
  • Location: West Midlands, England, UK
  • Total Posts: 14445
  • Joined: 06 August 2007 11:06 PM
  • Permlink of this post

Pivot Point - yes
Single Vertex - yes

Problems start when you consider Edges and Faces. There is no “getEdge” equivalent to “getVert” (assuming an EditablePoly) object) because the location of an edge is defined by the vertices at each end of it, so you now have 2 positions to deal with. Now, you could arrange things so the source edge moves in such a way that it’s midpoint is coincident with the destination edge (which would mirror “midpoint” snaps), though that requires some computation to achieve. You could move both source vertices to the locations of the 2 destination vertices, but which way around? You might end up with the 2 edges occupying the same space, or they could end up inverted thus “twisting” any attached poly through 180 degrees - probably not what you want. Now consider a multi-sided poly (face) and the potential problems become exponentially greater.
It might be possible, but it’s not something I’d care to attempt. Using the built-in snaps may not be so convenient, but they are probably a whole lot easier than trying to script it.



Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.

Replies: 0