Stylesheets with packed and groups doubt

   6108   15   3
User Avatar
Member
948 posts
Joined: 4月 2008
Offline
What I could be doing wrong that I can't assign a material to a primitive group of a packed object? I have the outside group and inside group and the primitive group condition for primitive groups does not work.

Can someone give me a hand?

Thanks.
Edited by mzigaib - 2016年12月2日 08:04:17

Attachments:
pigs_stylesheet_to group_fail.hip (411.5 KB)

https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
948 posts
Joined: 4月 2008
Offline
Sorry maybe I couldn't explain correctly my problem so I am going to try be clearer.

In the file I have a packed fracture object where I want to change my “inside” and “outside” materials using style sheets, so if I try to assign materials to those respectively groups created by the voronoi fracture using the “target” and the “condition” option to “primitive groups” and type the group names it doesn't work but if I type “1500-1800” on the group name you can see some primitives getting the material, so my problem is to understand how use group names correctly in the style sheets, I was hoping that someone could help me with that.

Thanks in advance.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
948 posts
Joined: 4月 2008
Offline
No one had this issue before? Really?
Edited by mzigaib - 2016年12月4日 15:52:50
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
948 posts
Joined: 4月 2008
Offline
Just in case if someone is wondering if I watched the Sidefx videos about style sheets yes i've watched all off them but no of them can provide me with answers regarding issues with RBD packed fragments and primitive groups, I must be missing something.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
スタッフ
4159 posts
Joined: 9月 2007
Offline
Yeah this is a little tricky; you have to assign the target: primitive, then add a sub-target: of primitive also; then on the sub-target, add a primitive group condition.
I'm o.d.d.
User Avatar
Member
948 posts
Joined: 4月 2008
Offline
If you look my file you are going to see that I just did that but it doesn't work I am starting to think that it is a bug.
Edited by mzigaib - 2016年12月7日 14:34:13
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
スタッフ
4159 posts
Joined: 9月 2007
Offline
You're right, it's something to do with packed fragments. If you toggle Pack Geometry Before Copying on the Copy SOP, and un-click Create Packed Geometry on the Assemble, it works fine since they're packed geometries. Or if you unlock the Assemble, and turn off Create Fragments on the Pack SOP.

Hopefully someone with a deeper knowledge can chime in with more insight as to why, because to me it feels like a bug as well.

Attachments:
pigs_stylesheets__mod.hipnc (449.8 KB)
screenshot-area-2016-12-07-194405.png (103.3 KB)

I'm o.d.d.
User Avatar
Member
948 posts
Joined: 4月 2008
Offline
I think it's a bug, I'll submit a RFE.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
948 posts
Joined: 4月 2008
Offline
I am still having the same problem with H16, any ideias?

Attachments:
stylesheet_try_fail_01.hipnc (2.5 MB)

https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
7740 posts
Joined: 9月 2011
Offline
There is a workaround, if you are interested. You can use an attribute to represent the inside group instead.

Attachments:
stylesheets_fragments_test.zip (58.3 KB)

User Avatar
Member
948 posts
Joined: 4月 2008
Offline
Yes I am totally interested! I'll try that, thanks for the tip.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
948 posts
Joined: 4月 2008
Offline
Dude!

You rock it works like a charm, I just wish that it could work with group names and fragments but this is already going to save me a lot of time on look dev.

Thanks!
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
948 posts
Joined: 4月 2008
Offline
I still can't use groups with packed fragments in style sheets I thought that it would be working by now.
I can use attributes but with groups would be more intuitive for sure.

Anyone else having this issue or it is just me?
Edited by mzigaib - 2017年9月6日 15:37:16
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
15 posts
Joined: 4月 2008
Offline
I have just looked into style sheets as I need to access groups from packed/instanced geometry and yes when I use a group name in the ‘Value’ field nothing happens, but when I use a number (primitive number?) it works just fine. Im using Houdini 16.0.705.
Edited by niczoom - 2017年11月18日 23:24:20
User Avatar
Member
948 posts
Joined: 4月 2008
Offline
As long as it is a packed fragment it is not going to work, Sidefx needs to look at this I've already sent them a bug report but it is still not working on 16.5
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
17 posts
Joined: 3月 2014
Offline
Hi, if you're still trying to resolve this, there is an easy workaround:
use name SOP to generate name attribute based on group names, then use that name to pack your geo. That will give you packed fragments based on group names (it will have Path attrib including the original group name). In the style sheet, target ‘Primitive name or path attrib’ instead of ‘Primitive group’ and you should be set.

See the picture in attachment.
Edited by David Pekarek - 2018年1月30日 06:04:56

Attachments:
packedStyles.jpg (473.0 KB)

  • Quick Links