I wrote something similar, not in Python but JS. BTW, I tried in Python too but it was extremely slow.
http://myara.web.fc2.com/mHardEdgeMarker.html Martin On Thu, Apr 3, 2014 at 9:26 AM, Raffaele Fragapane < raffsxsil...@googlemail.com> wrote: > As I said, dynamically manipulating cluster population in XSI in general > isn't really a viable option. > That said, outputting an ice attribute per edge and reading it from a > run-once python script is an option, sure. > > > On Thu, Apr 3, 2014 at 11:20 AM, pedro santos <probi...@gmail.com> wrote: > >> Unfortunately I want to drive the population of a specific cluster. The >> cluster that controls Hard Edges for Subdivision. >> >> I've made a tree that returns the angle between the 2 polygons meeting at >> the edge: >> >> >> >> The end use would be to drive Subdivision Hard Edges so I don't have to >> manually selected the sharpest edges of my mesh. Just slap a "Grater than" >> node (for example greater than 60ยบ) and have that condition to populate the >> cluster. >> >> So you say this is impossible... Damn... there goes my creativity :P >> >> Would for example Python be able to call this tree of mine and return a >> list of angles so then in python I would make a selection out of those >> values? >> Well if there is a script already that selects edges based on an Angle >> Threshold, I'll take it... Or I even make mine if there is way through >> python to get the polygon normal of both polygons associated with the edge. >> >> Gahh... I though I was gonna outsmart this one :P >> >> Cheers >> >> >> On Thu, Apr 3, 2014 at 1:02 AM, Raffaele Fragapane < >> raffsxsil...@googlemail.com> wrote: >> >>> You can't alter the membership of clusters from ICE. Altering membership >>> of a cluster in general in XSI is a pain in the arse. >>> Walking a rose grove means you get a lot of pain from the thorns :p >>> >>> If you want ICE to drive something that something else down the line >>> will use I suggest you use a weight map instead. >>> Just output the weightmap from ICE (you can do that), and use it as an >>> input in whatever the following step is. There's very few things in XSI >>> that a point cluster can filter for that can't be done with a weightmap >>> anyway. >>> >>> Unless you want to drive poly clusters for materials, in which case, no >>> dice with a weightmap, but a vertex colour map might do the trick. >>> >>> >>> On Thu, Apr 3, 2014 at 10:50 AM, pedro santos <probi...@gmail.com>wrote: >>> >>>> What do you mean with "rose grove"? I don't get the expression. Even >>>> consulter urban dictionary :P >>>> >>>> Anyways imagine something simple as: if element posY is less than 2, >>>> than it belongs to the cluster. >>>> >>>> Cheers >>>> >>>> >>>> On Thu, Apr 3, 2014 at 12:47 AM, pedro santos <probi...@gmail.com>wrote: >>>> >>>>> I don't want to change the cluster selection input to drive something >>>>> in ICE. >>>>> I want to actually change the cluster with ICE to drive something out >>>>> of ICE, with the cluster. >>>>> >>>>> Thanks >>>>> >>>>> >>>>> On Wed, Apr 2, 2014 at 11:53 PM, Raffaele Fragapane < >>>>> raffsxsil...@googlemail.com> wrote: >>>>> >>>>>> You wanting an ICE tree to affect the active selection? If that, no >>>>>> chance; selection is an interaction feature, not a set of data that can >>>>>> be >>>>>> persisted and manipulated through live ops, ICE included, of any kind. >>>>>> Modifying the population of a cluster dynamically is a rose grove. >>>>>> >>>>>> What are you trying to do exactly? >>>>>> >>>>>> >>>>>> On Thu, Apr 3, 2014 at 9:13 AM, pedro santos <probi...@gmail.com>wrote: >>>>>> >>>>>>> Tried to use clusters. I've thought it was the rational thing to do, >>>>>>> but apparently I cannot set them. >>>>>>> http://screencast.com/t/fWVYswfaBlu5 >>>>>>> >>>>>>> How do you guys go about this? >>>>>>> >>>>>>> Can Python create on-thefly Trees to return values or such? >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Our users will know fear and cower before our software! Ship it! Ship >>>>>> it and let them flee like the dogs they are! >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> [img] >>>>> http://i153.photobucket.com/albums/s202/animatics/avatar_1.gif[/img] >>>>> >>>> >>>> >>>> >>>> -- >>>> [img] >>>> http://i153.photobucket.com/albums/s202/animatics/avatar_1.gif[/img] >>>> >>> >>> >>> >>> -- >>> Our users will know fear and cower before our software! Ship it! Ship it >>> and let them flee like the dogs they are! >>> >> >> >> >> -- >> [img]http://i153.photobucket.com/albums/s202/animatics/avatar_1.gif[/img] >> > > > > -- > Our users will know fear and cower before our software! Ship it! Ship it > and let them flee like the dogs they are! >