Aller au contenu

Photo

Anyone remember this post - position duplication via script


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Baaleos

Baaleos
  • Members
  • 1 330 messages
 Hi Guys,
A good while back I asked for a function/help making a function that could reconstruct the positions of placed objects and then spawn objects in the same relational position at a new location.



Eg

-----------------------------
|            o 
|
|      o       x           o
|
|                o
|-----------------------------

Eg: the o's are objects or waypoints arranged in a pattern around x (the center point)


I would then like to be able to reference that center point, and duplicate the pattern of objects around it at another location.


This would be useful for me placing designs in toolset in one area - eg: creating complex glyph designs by hand, and then having them spawned elsewhere by script.

There was definitely a post where someone like ShAdoOw had provided the entire function that did what I needed.
However the search functionality on this forum is a little lacking.

It might have been over a year ago.

#2
WhiZard

WhiZard
  • Members
  • 1 204 messages
If you have the positions for all the objects, all you would have to do is find the average of the vectors to get the center point. If you know the center point you would just need to subtract its position from the position of each object to get their position relative to the center.

#3
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
Script Request/Consult

#4
Baaleos

Baaleos
  • Members
  • 1 330 messages
Thanks Lightfoot8
I had been trying to remember its title for the search tool- I prob shoulda named it better. Lol

#5
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
Yea, I had to google the site for "relative position" to find it and that was only because I half remembered what I named the functions.

#6
Tarot Redhand

Tarot Redhand
  • Members
  • 2 693 messages
Lightfoot8 have you considered putting an erf'ed version onto either vault with a short explanation of what it does?

TR