PDA

View Full Version : object placement with ms


gulio
07-25-2006, 03:16 PM
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.

j-man
07-26-2006, 09:10 AM
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
)
)

gulio
07-26-2006, 06:10 PM
@j-man,
thanks a lot mate :thumbsup:. 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

CGTalk Moderation
07-26-2006, 06:10 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.