Hi,
I need a script converting Editable mesh to editable poly conversion. But ı want to keep instance objects. is there anyone has something like this ?
İs it possible ?
Thanks
Forum topic · Scripts Wanted
By Mahmud Esad · 2015-08-18
Hi,
I need a script converting Editable mesh to editable poly conversion. But ı want to keep instance objects. is there anyone has something like this ?
İs it possible ?
Thanks
Comments (4)
Comment policy
`
Hi Fajar,
not if next line after "add modifier" is "collapse to Edit_Poly"...
- because all instances of "o" will be collapsed to Edit_poly too...
- that's mean they will be skipped later by ".. where classof o == Editable_mesh do ..."
of course this don't work if you "--" turn off collapse line, do you agree ?
About your code:
- it should be "appendifunique" otherwise same object will be collected multiple times (so "--add something here...." will be also repeated few times on the same object)
- "if firstOnly.count > 1 do" it will collects only instanced objects
- what about other selected objects which don't have any instance ?
(qestion was about convert "all objects" to EditPoly but keep instances)
- why "firstOnly[firstOnly.count-1]" not just firstOnly[1] ?
I think your code should look this way:
or even:
what do you think ?
if its intance we just need the first node only...say bout using InstanceMgr.GetInstances...
if object added modifer while the object itself is intance then if it added more than two modifier it'll result to add modifer 2xobject in selection count per object...
say something like this
`
try this:
for selected objects only:
for whole scene:
cheers,
Pixamoon
Thank you very much. Works great