PDA

View Full Version : Script Modifier to automaticaly select all faces


Gibbz
04-01-2008, 06:15 AM
Im tyring to extended the meshSelect modifier and get it to select all faces/verts etc so that I can put a uvw map modifier ontop and have this update as I am modeling.

So far I have the basics, but Is there a way to set subobjectlevel without using subobjectlevel = x ?

Heres what i have so far....


-- Mesh Select modifier to automatically select all mesh
-- Usefull for displaying final results

plugin modifier mAutoMeshSelect name:"Mesh Select - Automatic" classID:#(685325,452281) extends:MeshSelect replaceUI:true version:1
(
parameters main rollout:params
(
mSubObj type:#integer animatable:false ui:radSubObject default:4
on mSubObj set val do delegate.subobjectlevel = val
)


rollout params "Parameters"
(
radiobuttons radSubObject labels:#("Vertex","Edge","Face","Polygon","Element") default:4

on radSubObject changed mVar do
(
delegate.subobjectlevel = mVar
)
)

)

Gravey
04-01-2008, 09:24 AM
maybe i'm missunderstanding but based off your description, all you have to do is apply your uvw mod as usual and make sure the 'show end result' button is on when you're editing below.

If i've missunderstood, an alternative solution is to just use a volume select modifier and set it to 'Face' instead of writing a new one. Clean, simple, built in!

Gibbz
04-02-2008, 12:02 AM
Ah ill give the volume select a go.

Problem with mesh select is if your making cuts to your mesh bellow that it does not select the new faces.

Gibbz
04-02-2008, 04:18 AM
Nope volume select doesnt work either :(

JHN
04-02-2008, 07:46 AM
Wouldn't you be better of with a change handler forcing the mesh select to update?

-Johan

Gravey
04-02-2008, 10:35 AM
are you using a uvw map modifiers or an unwrap uvw modifier ?

CGTalk Moderation
04-02-2008, 10:35 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.