Codi
09-20-2007, 10:14 AM
Hi,
I'm trying to make a modifier to do certain edit poly operations to a selected object (inset x units, extrude y units, and so on ....), at the moment all I have is this:
plugin modifier CodMod
name:"CodMod"
classID:#(53527,53427)
extends:Edit_Poly
replaceUI:true
version:1
(
parameters main rollout:params
(
amount type:#integer ui:amtSpin default:20
on amount set val do (
delegate.SetSelection #Face #{1}
delegate.SetOperation #Inset
delegate.insetType = 1
delegate.insetAmount = val
delegate.Commit()
)
)
rollout params "Parameters"
(
spinner amtSpin "Amount: " type:#integer range:[0,1000,20]
)
)
I cant manage to get it to work, I apply the modifier on top of the object but it refuses to apply the operation ... is this the propper way to achieve the functionality I want?
BTW wich would be a good method to select all the faces in line 'delegate.SetSelection #Face #{1}' ???
Thanx
I'm trying to make a modifier to do certain edit poly operations to a selected object (inset x units, extrude y units, and so on ....), at the moment all I have is this:
plugin modifier CodMod
name:"CodMod"
classID:#(53527,53427)
extends:Edit_Poly
replaceUI:true
version:1
(
parameters main rollout:params
(
amount type:#integer ui:amtSpin default:20
on amount set val do (
delegate.SetSelection #Face #{1}
delegate.SetOperation #Inset
delegate.insetType = 1
delegate.insetAmount = val
delegate.Commit()
)
)
rollout params "Parameters"
(
spinner amtSpin "Amount: " type:#integer range:[0,1000,20]
)
)
I cant manage to get it to work, I apply the modifier on top of the object but it refuses to apply the operation ... is this the propper way to achieve the functionality I want?
BTW wich would be a good method to select all the faces in line 'delegate.SetSelection #Face #{1}' ???
Thanx
