PDA

View Full Version : automated multi bevel


godblessbotox
02-09-2008, 02:34 AM
howdy fellas, im trying to create a script to operate on the face sub-selection on an editable poly.

it needs to perform 2 bevels, on to just pull the faces in. then another to extrude and pull in.

for some reason i keep getting syntax errors and im not really sure why

for g in selection do
(
g.bevelHeight Float default: 0
g.bevelOutline Float default: -1.0
)
(
g.bevelHeight Float default: 0
g.bevelOutline Float default: -1.0

)

for p in objects do
if iskindof Editable_poly then
messagebox "visability on"

the message box worked once. and never again. not sure if something was saved in memory but i can no longer test that. it was just ment to see if i got some of the language right.

if anyone can shed some light on this that would be great

godblessbotox
02-09-2008, 03:09 AM
rollout test_buttons "bevel/extrude"
(

button onButton "do"

on onButton pressed do

(
$.bevelFaces 0.0 -1.0; $.bevelFaces 1.0 -3.0;
)

)

createDialog test_buttons 60 60


ok, sorry. got it

CGTalk Moderation
02-09-2008, 03:09 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.