MoI discussion forum
MoI discussion forum

Full Version: Is there a script that will replace a shape with another shape?

Show messages: All  1-14  15-18

From: Michael Gibson
4 May   [#15] In reply to [#13]
Hi stefano,

re:
> I was wondering - if the object is named - and i might be interested to
> swap all 'object 1's - Circle" with 'object 2 - Square'
> would that be an easy script?

Here's a simplified version.

This one does not do anything with selection, you put in 2 names and all objects with name #1 are replaced by objects with name #2

- Michael

Attachments:
ReplaceNamedObject.zip


From: stefano (LIGHTWAVE)
7 May   [#16] In reply to [#15]
tested this and like its simplicity - thanks Michael...
Please can you let me know, where i change the dialogue box text
to suit my way of thinking...simply put, I'd like it to read:

REPLACE Object(s) Named:
[Circles]

WITH Object Named:
[ Square ]
From: Michael Gibson
7 May   [#17] In reply to [#16]
Hi stefano, the text for these is in ReplaceNamedObject.htm

> REPLACE Object(s) Named:

That's on line number 15, look for this:

Name to be replaced:


> WITH Object Named:

This one on line number 27, look for:

Name to replace with:

- Michael
From: stefano (LIGHTWAVE)
8 May   [#18] In reply to [#17]


thanks michael updated...

Image Attachments:
MoI ReplaceNamedObject.jpg 


Show messages: All  1-14  15-18