Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography


Featured Threads
  inspiration alert!!!
(36 replies)
  Indespensible MaxScripts, Plugins and 3rd Party Tools
(37 replies)
  The allmighty FREE Resources Thread !
(17 replies)
  spam alert!!!
(4886 replies)
  Maxforums member photo gallery index
(114 replies)
  Maxforums Member Tutorials
(89 replies)
  three cheers to maxforums...
(240 replies)
  101 Things you didnt know in Max...
(198 replies)
  A Face tutorial from MDB101 :D
(95 replies)
  Maxforums.org Members Gallery
(516 replies)
  SON OF POST YOURSELF
(637 replies)
  Dub's Maxscript Tutorial Index
(119 replies)

Maxunderground news unavailable

Replace geometry
show user profile  graphix72
I am modeling a "modular building" as some of you may know, and I would find it very useful to replace objects with new versions of themselves.

I found a script on ScriptSpot called Select Similar, which will find all objects similar to the one selected. But it doesn't seem to have a function to replace them. What I want, once I have all the instances selected, is to replace them with instances of the new object.

So, for example, in my scene with my modular building, I want to replace all instances of the "balcony" with a new version of the balcony, and keep the orientation of the previous instance. Is there a script of a function to do this?


read 841 times
6/12/2010 5:03:15 AM (last edit: 6/12/2010 5:03:15 AM)
show user profile  Garp
Say one of the instanced objects to be replaced is named TargetObject and the new version object is named Source Object. Run:
instanceReplace $TargetObject $SourceObject
All instances of TargetObject are replaced as well and are still instances of each other.

You might need to 'move' the viewport a little bit in order to update the display.




read 830 times
6/12/2010 6:08:11 AM (last edit: 6/12/2010 6:08:11 AM)
show user profile  Dub.
for o in selection do (o.baseobject = $NewBalcony01.baseobject)

select all the old balconies, edit the script so that the name of the new balcony is in there and run it.


read 829 times
6/12/2010 6:09:10 AM (last edit: 6/12/2010 6:09:10 AM)
show user profile  Dub.
damn too slow


read 828 times
6/12/2010 6:09:25 AM (last edit: 6/12/2010 6:09:25 AM)
show user profile  graphix72
Thank you very much!


read 811 times
6/12/2010 7:29:06 AM (last edit: 6/12/2010 7:29:06 AM)
show user profile  graphix72
What if my objects have spaces in their names? Such as: "Window A 01"
Is there any way to do the instanceReplace function?


read 797 times
6/12/2010 8:18:30 PM (last edit: 6/12/2010 8:18:30 PM)
show user profile  Manolo
Got to learn maxscript.
anyway, google for soulburn scripts, I think there is one fit for that.

Cheers,

Manolo
read 790 times
6/13/2010 12:50:11 AM (last edit: 6/13/2010 12:50:11 AM)
show user profile  Garp
In the code, replace spaces by underscores.




read 781 times
6/13/2010 2:30:26 AM (last edit: 6/13/2010 2:30:26 AM)
show user profile  Toen
You can also replace objects with another one via the modifier stack with the Substitute modifier.
read 762 times
6/13/2010 9:28:36 PM (last edit: 6/13/2010 9:29:47 PM)
show user profile  khamski
Is there a way to actually FIND IDENTICAL GEO and turn it into instance?

I've found this script (http://www.scriptspot.com/3ds-max/scripts/find-identical-geometry-and-instance-it) but i think it's wasn't finished.



read 515 times
5/10/2015 9:15:08 PM (last edit: 5/10/2015 9:15:08 PM)
#Maxforums IRC
Open chat window


Support Maxforums.org