Notifications
Clear all

[Closed] object placement with ms

Hi everybody,
does someone knows a script which can place and rotate instances of an object at the locations of objects in a selection. Every reply is very apprechiated.

2 Replies

you don’t need a script for this in max8, use the seelct and replace tool. – edit: sorry, the clone and align tool!

J.


 -- array pickobject to selection
 
 -- simply select all objects you want to replace,
 -- execute script,
 -- pick the new object,
 -- press delete to delete the old objects.
 
 
 undo "Pickobject array" on
 (
 	p=pickobject prompt:"Pick object to array."
 	for s in selection do 
 	(
 		k=instance p rotation:s.rotation pos:s.pos
 --		k.rotation.z=(random 0 360)			-- remove the quotes from this line to have random rotation
 	)
 )
 

@j-man,
thanks a lot mate . This is exactly what I was looking for and I´m joyfully suprised that it´s already there. I didn´t thought of looking at the standard functions because I was really sure this could only be accomplished via ms. So thanks again for pointing me in that direction.

greets – gulio