How to organize geometry following a pattern?

   6917   7   1
User Avatar
Member
25 posts
Joined: 7月 2005
Offline
Hi
Lets say I have a set of 5 different geometry (objects).

I want to position them following a curve or a line or a circle.
Lets say, the object 1 at the point 1 of the curve, the point 2 at the point of the curve at so on.

For example if the pattern is a circle, they would look organized in a circle. But they need to keep being independent objects, because I have arrows point from and to them so I need to know their references.

I can do this using the function point, but I am having problems because I have hundreds of objects (geometry) , I think it is inefficient to write the expression for every single coordinate (X, Y,Z) of every single geometry. The geometry are different therefore I cannot use the copy SOP.

How can I do this? Any ideas? :?

Thanks

Ungria
HB
User Avatar
Member
276 posts
Joined: 7月 2005
Offline
Would Copy stamping help? Here's a link to an old tutorial, but it does still work I think. In conjunction with a Switch SOP, for example, you can use copy stamping to copy different geometry to the various points.

http://www.sidefx.com/community/learn/modeling/legacy/stamping.pdf [sidefx.com]

Take care,
George.
User Avatar
Member
25 posts
Joined: 7月 2005
Offline
I need to be able to get the references of the position of each geometry AFTER the copy sop. I need to get them because I have other geometry related to them

Tha is not explained anywhere I have looked at.

Thanks
HB
User Avatar
スタッフ
2540 posts
Joined: 7月 2005
Offline
Before the Copy SOP, just add an Add Attribute SOP and create a primitive vector attribute, say centroid, and set it to $CEX, $CEY and $CEZ.

The mapping to the attribute should carry through the Copy SOP so you may even be able to use $CENTROID0 1 and 2 further on down the chain.
There's at least one school like the old school!
User Avatar
Member
398 posts
Joined: 7月 2005
Offline
ungria, I do not know, which the function of the objects distribution on the geometry. But I think, that this example will give some ideas to you.
Check this scene http://www.cgtalk.ru/~hoknamahn/coord_func.hipnc [cgtalk.ru]
f = conserve . diffuse . advect . add

fx td @ the mill
User Avatar
Member
25 posts
Joined: 7月 2005
Offline
It gives me a segmentation fault error!

I have been able to see some examples before. Here is the error message I get:

CP evalInt: Invalid parameter name picking
CP evalInt: Invalid parameter name tdisplay
CP evalInt: Invalid parameter name picking
CP evalInt: Invalid parameter name tdisplay
CP evalInt: Invalid parameter name tdisplay
Fatal error: Segmentation Fault
Saving application data to CDOCUME~1/ungria/LOCALS~1/Temp/ungria.hip

I am very new lerning Huodini, I am sorry for asking so much.

Thanks

Ungria
HB
User Avatar
Member
325 posts
Joined: 7月 2005
Offline
I'v tried the scene and everithing works fine. I used Mandrake 10.0 Linux and H7.0.231 by the way
I liked the Mustang
User Avatar
Member
132 posts
Joined: 7月 2005
Offline
You should very easily be able to copy different objects to different points based on point numbers. Is this all you want to do?

By the way the file created by hoknamahn worked fine for me also, and I'm running WindowsXP :cry:
  • Quick Links