Notifications
Clear all

[Closed] Unwrap_UVW selecting all faces on all nodes

So if you have a single object with a UVW Unwrap on it, you can select all the faces in the node using:

allfaces = for i = 1 to (unwrapMod.numberPolygons()) collect i
unwrapMod.selectFaces (allfaces as bitarray)

If your UVW Unwrap is applied to multiple objects, you can select the faces using these commands:

objs = #($Sphere002, $Sphere001)
allfaces = for i = 1 to (unwrapMod.numberPolygonsByNode objs[1]) collect i
unwrapMod.selectFacesByNode (allfaces as bitarray) objs[1]

But how can I select all the faces in all the nodes at the same time?

  • Neil
4 Replies

This seems to work for me.


allfaces = 0
for obj in selection do allfaces += unwrapMod.numberPolygonsByNode obj
for obj in selection do unwrapMod.selectFacesByNode #{1..allfaces} obj

If you don’t mind the UI update, you can also do this.


subobjectlevel = 3
max select all

If you are in face subobject mode the simplest, as Juan said, is “max select all”.
The following will also work:

(
 	unwrap = modPanel.getCurrentObject()
 	if classof unwrap == Unwrap_UVW do
 	(
 		for obj in selection do unwrap.selectFacesByNode #{1..obj.numfaces} obj
 	)
 )

There is no need to have the Unwrap Editor opened in neither ways.

Thanks guys. My mistake was in thinking that when I moved to the next object in my array that it would deselect the faces I had selected in the previous object. Now it all works!

  • Neil