Page 1 of 5

PolyMesh Duplicator v1.2.1

Posted: 20 Oct 2009, 22:45
by nassosy
********Update
v1.1: Added a command to separate the duplicated mesh into multiple objects.
The stack of the duplicated mesh must NOT be frozen (it needs the PolyMeshDuplicator operator).
Right now clusters, animation and uv coords are completely ignored.
The "separate" command is meant to be fast (hopefully someone will also make it feature complete)
because all the other scripts i found on the net are way too slow.
The commands have been moved to the "Modeling > Modify > PolyMesh" menu.
Added a "Move to 3D Grid with CopyID" ICE compound, to help make 3D Grid formations.
Source code is included.

v1.0 info:
Makes procedural duplicates of a polygonMesh object that can be manipulated in ICE.
Just like Houdini's Copy/Duplicate SOP.
I saw Guillaume Laforge's op here
http://www.vimeo.com/groups/ice/videos/6996197
and since i couldn't find his online, i decided to make my own.
Use it at your own risk.

For XSI 7.01 x86-x64 windows

Posted a video tutorial of it here:
http://www.vimeo.com/7218396


Update: Added "Random with CopyID", "Transform to PointCloud with CopyID"
and "Move to 3D Grid with CopyID" ICE compounds

Local copy can be found here: http://www.si-community.com/download/pl ... v1.2.1.rar

Usage:
Now you no longer have to open up an ICE tree to get it working.

To use "PolyMesh Duplicator for Pointcloud":
- Select the mesh that is used as instance shape.
- Choose Modify->Poly.Mesh->PolyMesh Duplicator for Pointcloud
- Pick the pointcloud to which the geometry should be matched.
- In the "Copies" field of the PolyMeshDuplicator operator, enter the
number of particles.

If you do not know the number of particles, you can
find it out by choosing View->Scripting->SDK Explorer. Then select the
pointcloud, choose "Object Details" and scroll down until you see: "Number of particles: xxxxx"

Re: PolyMesh Duplicator

Posted: 21 Oct 2009, 18:49
by wailingmonkey
that looks to be quite handy!

Thank you for sharing it, nassosy, and thank you for
generously sharing your other recent ICE goodies as well!

:)

Re: PolyMesh Duplicator

Posted: 21 Oct 2009, 20:18
by scaron
whats the chances you would make the source available?

Re: PolyMesh Duplicator

Posted: 21 Oct 2009, 21:09
by nassosy
DL it from above. :-bd

Re: PolyMesh Duplicator

Posted: 23 Oct 2009, 04:13
by scaron
thanks! more of this open shared knowledge will only help bring more customizations to our community

Re: PolyMesh Duplicator v1.1

Posted: 06 Nov 2009, 23:19
by Maximus
any chance you're gonna compile it for softimage 2010 x64 ?
i tried and doesnt work :)
thanks for sharing !

Re: PolyMesh Duplicator v1.1

Posted: 07 Nov 2009, 18:44
by nassosy
I only have 2010 SP1 x64 and it works
If you try to import scenes from previous releases (ex. 7.01),
you have to re-apply the operator,
because SI doesn't seem to properly connect it
(don't know why)

I attached a sample scene
(the forum doesn't allow uploads > 256kb, :-?
so it is split :-?? )

Re: PolyMesh Duplicator v1.1

Posted: 10 Nov 2009, 12:12
by Robert_XSI
Thanks for your great tool!! :ymhug:

Is it possible to reproduce this effect with your addon?


http://vimeo.com/groups/ice/videos/6999806

http://vimeo.com/groups/ice/videos/6996197

And I would like to make, for instance, random distribution of these spheres, is it possible somehow.

Thanks in advance!

Re: PolyMesh Duplicator v1.1

Posted: 10 Nov 2009, 14:55
by nassosy
Robert_XSI wrote:Thanks for your great tool!! :ymhug:

Is it possible to reproduce this effect with your addon?


http://vimeo.com/groups/ice/videos/6999806

http://vimeo.com/groups/ice/videos/6996197

And I would like to make, for instance, random distribution of these spheres, is it possible somehow.

Thanks in advance!
I added some compounds to help you make it happen,
DL from above.

Re: PolyMesh Duplicator v1.1

Posted: 11 Nov 2009, 14:00
by Robert_XSI
Thanks Nassosy for you reply and the compound.
It is such a great tool, so as ICE. I am only a newbie, but sucking in ICE info..

Unfortunately I rather thought about the other movie, this one

http://vimeo.com/6999806

Can I attach your duplicated objects to another cloud points, just like in the above movie?

Highly appreciate you contribution to this small, hopefully fast-expanding community.

THX

Re: PolyMesh Duplicator v1.1

Posted: 11 Nov 2009, 15:32
by nassosy
Robert_XSI wrote:
Can I attach your duplicated objects to another cloud points, just like in the above movie?
That's what the "Transform to PointCloud with CopyID" compound does,
plug the point cloud to the geometry port and that's it.

Re: PolyMesh Duplicator v1.1

Posted: 11 Nov 2009, 16:33
by Squizmek
Hi nassosy,
Thank you for sharing your addon, it's very useful!
I would like to modify your script a little to automatically plug in a pointcloud into the "Transform to Pointcloud" node. Do you mind if I re-publish your modified work here?

Re: PolyMesh Duplicator v1.1

Posted: 11 Nov 2009, 17:49
by nassosy
Squizmek wrote:Hi nassosy,
Thank you for sharing your addon, it's very useful!
I would like to modify your script a little to automatically plug in a pointcloud into the "Transform to Pointcloud" node. Do you mind if I re-publish your modified work here?
Be my guest :-bd

Re: PolyMesh Duplicator v1.1

Posted: 12 Nov 2009, 20:33
by Squizmek
Ok, now you can convert your pointcloud to a polymesh directly without having to open any ICE-trees!

I have also added a GNU General Public License so this addon remains free. I hope this is ok with you ^:)^

I simply added the following functionality:

New function "PolyMesh Duplicator for Pointcloud"
- Select the mesh that is used as instance shape.
- Choose Modify->Poly.Mesh->PolyMesh Duplicator for Pointcloud
- Pick the pointcloud to which the geometry should be matched.
- In the "Copies" field of the PolyMeshDuplicator operator, enter the
number of particles.

If you do not know the number of particles, you can
find it out by choosing View->Scripting->SDK Explorer. Then select the
pointcloud, choose "Object Details" and scroll down until you see: "Number of particles: xxxxx"

Thanks again for your great Addon!

Re: PolyMesh Duplicator v1.1

Posted: 12 Nov 2009, 22:33
by nassosy
v1.2.1

I corrected some bugs i found to the 1.2 version you posted.
Changed it, so it automatically sets the Copies to the number of particles there are at the current frame,
and renamed the "Transform Geometry to Pointcloud" compound to "Transform PmDuplicated to Pointcloud"
to avoid user confusion.

just uninstall/delete the old addon and install the new one.

Re: PolyMesh Duplicator v1.1

Posted: 12 Nov 2009, 22:38
by nassosy
Squizmek wrote:
I have also added a GNU General Public License so this addon remains free. I hope this is ok with you ^:)^
Frankly, even if they stole the source code,
I personally doubt that anyone would pay for
such a simple plugin like this.