em3
03-07-2012, 05:16 PM
Hi! I am trying to avoid having to code in all of the properties of each sweep type (1,2,3,4...)
right now I have
case sweepType of
(
10: --Ibeam
(
local swp = sweep()
addmodifier thePath swp
swp.CurrentBuiltInShape = sweepType
classOf thePath
local p = swp[4].object
case theAxis of
(
1:
(
p.wide_flange_width = (obb[2]) as float
p.wide_flange_length = (obb[3]) as float
)
2:
(
p.wide_flange_width = (obb[1]) as float
p.wide_flange_length = (obb[3]) as float
)
3:
(
p.wide_flange_width = (obb[1]) as float
p.wide_flange_length = (obb[2]) as float
)
)
)
I have to do this for each type. Is there a way to loop through the properties of the modifier and grab the length and width?
Thanks!
right now I have
case sweepType of
(
10: --Ibeam
(
local swp = sweep()
addmodifier thePath swp
swp.CurrentBuiltInShape = sweepType
classOf thePath
local p = swp[4].object
case theAxis of
(
1:
(
p.wide_flange_width = (obb[2]) as float
p.wide_flange_length = (obb[3]) as float
)
2:
(
p.wide_flange_width = (obb[1]) as float
p.wide_flange_length = (obb[3]) as float
)
3:
(
p.wide_flange_width = (obb[1]) as float
p.wide_flange_length = (obb[2]) as float
)
)
)
I have to do this for each type. Is there a way to loop through the properties of the modifier and grab the length and width?
Thanks!
