Ta aí o que seria o botão para a porta pivot:
macroScript Preset_Pivot_01
category:\"Presets\"
ButtonText:\"Pivot 2,1m\"
Tooltip:\"Preset da Porta PivotDoor com 2,1m de altura\"
(
on execute do (
for i in selection do (
if classof i == pivot then (
i.Muntin = 2
i.Panel_Type = 1 -- use 0 para None, 1 para Glass e 2 para Beveled
i.Glass_Thickness = 0.3
i.Bevel_Angle = 45
i.Panel_Thickness_1 = 0.25
i.Panel_Thickness_2 = 0.5
i.Panel_Middle_Thickness = 0.25
i.Panel_Width_1 = 1
i.Panel_Width_2 = 0.5
i.Flip_Swing = false
i.Flip_Hinge = false
i.Open__degrees = 90
i.Create_Frame= true
i.Frame_Width = 5
i.Frame_Depth = 1
i.Door_Offset = 0
i.Generate_Mapping_Coords = true
i.Leaf_Thickness = 3
i.Stiles_Top_Rail = 4
i.Bottom_Rail = 12
i.Number_of_Panels_Horizontally = 1
i.Number_of_Panels_Vertically = 1
i.Double_Doors = 0
i.height = 210
-- i.width = 80 -- Para usar a largura, tire os dois traços de comentário
-- i.depth = 15 -- Para usar a altura, tire os dois traços de comentário
i.realWorldMapSize = true
)
else messagebox \"Selecione uma porta tipo Pivot Door\"
)
)
)
Agora um DETALHE IMPORTANTE! O Maxscript usa os valores do system units, portanto como eu uso em centimetros, coloquei os valores em centimetros. Se vc usa em polegadas, tem que colocar em polegadas, ou dividir todas as dimensões por 2.54 assim:
macroScript Preset_Pivot_01
category:\"Presets\"
ButtonText:\"Pivot 2,1m\"
Tooltip:\"Preset da Porta PivotDoor com 2,1m de altura\"
(
on execute do (
for i in selection do (
if classof i == pivot then (
i.Muntin = 2
i.Panel_Type = 1 -- use 0 para None, 1 para Glass e 2 para Beveled
i.Glass_Thickness = 0.3 / 2.54
i.Bevel_Angle = 45
i.Panel_Thickness_1 = 0.25 / 2.54
i.Panel_Thickness_2 = 0.5 / 2.54
i.Panel_Middle_Thickness = 0.25 / 2.54
i.Panel_Width_1 = 1 / 2.54
i.Panel_Width_2 = 0.5 / 2.54
i.Flip_Swing = false
i.Flip_Hinge = false
i.Open__degrees = 90
i.Create_Frame= true
i.Frame_Width = 5 / 2.54
i.Frame_Depth = 1 / 2.54
i.Door_Offset = 0
i.Generate_Mapping_Coords = true
i.Leaf_Thickness = 3 / 2.54
i.Stiles_Top_Rail = 4 / 2.54
i.Bottom_Rail = 12 / 2.54
i.Number_of_Panels_Horizontally = 1
i.Number_of_Panels_Vertically = 1
i.Double_Doors = 0 -- usar 1 para double doors
i.height = 210 / 2.54
-- i.width = 80 / 2.54 -- Para usar a largura, tire os dois traços de comentário
-- i.depth = 15 / 2.54 -- Para usar a altura, tire os dois traços de comentário
i.realWorldMapSize = true
)
else messagebox \"Selecione uma porta tipo Pivot Door\"
)
)
)
Qualquer duvida posta aí. [;)]