Rotating objects, using group names

   4755   6   1
User Avatar
Member
8 posts
Joined: Jan. 2008
Offline
I create box, duplicate it and have some groups.

How can I rotate these objects, using group names with the help of one operator? One follow another…
may be another variant?

[img230.imageshack.us]

Attachments:
box_Groups_rotate.hip (63.1 KB)

User Avatar
Member
345 posts
Joined:
Offline
Hey,

I am not exactly sure what you are looking for (can you be more specific please) You can try foreach loop, separate each group and extract the number from the group's name. This will be used as a value for rotation…. Is it what you are looking for?
At some point it would be good for you to switch from groups to attributes - it is much more flexible way to work with complex geometries.

Cheers
kuba
User Avatar
Member
8 posts
Joined: Jan. 2008
Offline
I'm looking something like this (in attachment)

Im not familar with houdini specifically in foreach node Can you post some example about this node - there is no examples in help

one more question - if I create curve with numbered point on it, what attributes must I change to rotate each point?
point node have NX, NY - normal directions, and then I type $F - number of frame in place of N*(Add Normal), nothing rotating, or rotating strange but number of frames is changed
I want to change point normal direction depending on frame number… (one frame - one degree) HOW???
may be it have (from 1-to 0) value?? or in radian? or vector?

thanks for replying

Attachments:
box_Groups_rotate_2.hip (72.5 KB)

User Avatar
Member
345 posts
Joined:
Offline
Hey Piter,

I think the easiest way is to use copy stamping. Have a look at the hip file, hope you are looking for something similar? Middle click on xform5 to see my comments on that node.

When it comes to normals it is possible but because you want to drive rotation with frame number, it will be quite tricky to transfer this value to normals (which consits of three-components). On the other hand that should be pretty easy in CHOPs


Please note that you get get similar behaviour with CHOPs, have a look at sideFX tutorial section and watch Introduction to CHOPs.

and good luck
kuba

Attachments:
box_groups_rotate_2_205_stamp.hipnc (70.2 KB)

User Avatar
Member
8 posts
Joined: Jan. 2008
Offline
Thnks, man!

I don't programming for 11 years, and now I'm coming back, - its very interesting - programming hyperspace tunnels or dancing galaxies ))

Houdini - the BEST!!!

[img98.imageshack.us]

are your ancestry on the picture? I like the wings…
User Avatar
Member
1390 posts
Joined: July 2005
Offline
Ha Ha!
Nice one, yep, this is definitely Kuba's grand grand father. I can see it from his eyes…

The name of such an army was: Husaria

http://en.wikipedia.org/wiki/Polish_Hussars [en.wikipedia.org]

and little more here:
http://pl.wikipedia.org/wiki/Husaria [pl.wikipedia.org]

in polish…


cheers,
sy.
User Avatar
Member
345 posts
Joined:
Offline
skazkaPiter
are your ancestry on the picture? I like the wings…

Yep, that's my great*28 grand dad
The wings have their technical reason, the sound of rattling feathers scared opponents cavalry which was the major influence in 1683 - Battle of Vienna. hmmm, nice times…..
  • Quick Links