Select Polygons Interactive

Plugins linking to this thread: (hide)

Select Polygons InteractiveAuthor: Constantine Tarasenkov
An interesting application of ICE PPG logic event handling code, originally meant to operate »inside« the PPG, to control the polygon selection on an object (selects polygons greater than/smaller than a specified area).

Also included in Constantine's Procedural Topo Pack. Youtube demo.

local backup: Select Polygons Interactive.rar

Post Reply
iamVFX
Posts: 697
Joined: 24 Sep 2010, 18:28

Select Polygons Interactive

Post by iamVFX » 02 May 2012, 10:53

I figured out how ICE PPG Logic can be actually useful. SI 2012.5 or above is required

Attachments
Select Polygons Interactive.rar
(1.73 KiB) Downloaded 283 times

mjd3d
Posts: 23
Joined: 13 Sep 2011, 22:31

Re: Select Polygons Interactive

Post by mjd3d » 03 May 2012, 09:49

So Great...

But it doesn't work with softimage 2012.sap
Because the node "Build array from set" is different version

iamVFX
Posts: 697
Joined: 24 Sep 2010, 18:28

Re: Select Polygons Interactive

Post by iamVFX » 03 May 2012, 10:19

mjd3d wrote:So Great...

But it doesn't work with softimage 2012.sap
Because the node "Build array from set" is different version
Thanks for info, mjd3d! I didn't know about that... So here is icetree then, I hope the build array from set node can be replaced with an old one

User avatar
rray
Moderator
Posts: 1775
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany
Contact:

Re: Select Polygons Interactive

Post by rray » 03 May 2012, 10:25

Interesting application.
Points out nicely that ICE ppg logic can operate outside the ppg also.
softimage resources section updated Jan 5th 2024

scaron
Posts: 119
Joined: 08 Jul 2009, 05:16

Re: Select Polygons Interactive

Post by scaron » 04 May 2012, 05:07

another interesting tool!

i haven't explored the ppg logic too much, thanks for continuing to push it

julian johnson
Posts: 9
Joined: 27 Apr 2010, 16:10

Re: Select Polygons Interactive

Post by julian johnson » 04 May 2012, 16:35

Hi Constantine,

Very nice work!

I found that I could grab the parent object using PPG.Inspected(0).

e.g.

Code: Select all

def size_OnChanged():
	oParent = Application.GetValue(PPG.Inspected(0)).Parent3DObject
	attr = oParent.ActivePrimitive.Geometry.GetICEAttributeFromName("foo").DataArray2D[0][0]
	oSubC =  oParent.ActivePrimitive.Geometry.CreateSubComponent('poly', attr)
	Application.SelectGeometryComponents(oSubC)
Julian

iamVFX
Posts: 697
Joined: 24 Sep 2010, 18:28

Re: Select Polygons Interactive

Post by iamVFX » 04 May 2012, 19:41

julian johnson wrote:Hi Constantine,

Very nice work!

I found that I could grab the parent object using PPG.Inspected(0).

e.g.

Code: Select all

def size_OnChanged():
	oParent = Application.GetValue(PPG.Inspected(0)).Parent3DObject
	attr = oParent.ActivePrimitive.Geometry.GetICEAttributeFromName("foo").DataArray2D[0][0]
	oSubC =  oParent.ActivePrimitive.Geometry.CreateSubComponent('poly', attr)
	Application.SelectGeometryComponents(oSubC)
Julian
Thanks for pointing this out, Julian!

So now it works without selection. And if nothing is matched with a condition none of the polygons will be selected.
Attachments
Select Polygons Interactive.1.1.rar
(1.68 KiB) Downloaded 232 times

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests