Message 1 of 16
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello i modified a little bit the original script ( Attach by Same Material )
,so it will attach only the visible objects in the scene .
I have the following script
---------------------------------------
on attach pressed do
(
if selection.count == 0 then (messageBox "Nothing selected. To use, select one object and run the script to attach all other objects with the same material.")
else if selection.count == 2 then (messageBox "Multiple objects selected. To use, select one object and run the script to attach all other objects with the same material.")
else if selection.count == 1 then
(
mainobject = $
(
macros.run "Modifier Stack" "Convert_to_Poly"
mat = mainobject.material
for o in objects where not o.isHiddenInVpt do
(
--print o.material
if o.material == mat then
(
-- print "yes"
mainobject.EditablePoly.attach o mainobject
) ) ) ) )
---------------
But cannot figure it out ,how to make the attach to be by 300 objects in one part - similar to the "quick attach ".
Solved! Go to Solution.