Hvordan rulle ut menyer i egenlagd interface?

Max scripts

Moderatorer: Super Moderatorer, Admins


Trådstarter
hardrock_ram
Innlegg: 1502
Registrert: ons 07 feb, 2007
Sted: Kristiansand

Hvordan rulle ut menyer i egenlagd interface?

Legg innav hardrock_ram » tor 09 jan, 2014

jeg skulle gjerne hatt mulighet til rollouts med pluss\minus-tegn i interfacet til en script fordi de tar så stor plass. Videre hadde det også vært kjekt med mulighet for å resize vinduet. Hvordan kan jeg gjøre dette? :)
if your not living on a killing ground, you better make your own

Brukeravatar

tassel
Innlegg: 3986
Registrert: man 26 sep, 2005
Sted: Oslo
Kontakt:

Legg innav tassel » tor 09 jan, 2014

Haavards har jo laget dette i scriptorganizeren sin, du kan jo ta en titt på det:
http://www.scriptspot.com/3ds-max/scrip ... ganisernew

Eller du kan ta en titt her:
http://paulneale.com/tutorials/dotNet/t ... eeView.htm


Eller du kan ta en titt på noe uferdige greier jeg begynte på for lenge siden som jeg egentlig bare testa ut. (Du kan eventuelt jobbe videre med dette og gjøre slik at man kan lagre path data i ini fil osv. ;)

Og til slutt ligger det et BONUS script only 4 you (LOL) :wink:


EDIT: Jeg tror ikke helt jeg catcha hva du ville. men kanskje noe av dette hjelper.

[spoiler]

Kode: Velg alt

/*
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[DESCRIPTION]
Aker Solutions Script Docking System V1.0 – Collecting all scripts in one UI to make the workflow faster.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[INFO]
- Put the files in maxroot\scripts\ (e.g.: C:\3dsmax2012\Scripts\)
- Should Work with 3DS Max 2008 <--> 2012
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[CREATION INFO]
Last Modified: Februar 05, 2012
Author: Raymond Homme Ingebretsen
Webpage: http://www.homme3d.com
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[History]
V1.0: First version.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*/

--Unregister cui dialog bar if it is already open
try(cui.unregisterDialogBar roll_AKSO_TOOLS) catch()

--Destroy the dialog if it is already open
try(destroyDialog roll_AKSO_TOOLS)catch()


rollout roll_AKSO_TOOLS "AKSO TOOLS" width:90 height:800
(
      -- Sub Rollout "Function"
      subRollout subroll_IncludeInRollout "Sub:" pos:[0,274] width:90 height:500 -- Include External Rollout (Up/Down)
   
      -- Text Label on top
      label lbl_txt1 "..:: MENU ::.."  pos:[12,1] width:75 height:18
   
      -- Main Category Buttons

      checkbutton cb_Scene "SCENE" pos:[7,17] width:75 height:18 tooltip:"Scene Tools"
      checkbutton cb_Animation "ANIMATION" pos:[7,36] width:75 height:18 tooltip:"Animation Tools"
      checkbutton cb_Riging "RIGING" pos:[7,55] width:75 height:18 tooltip:"Riging Tools"
      checkbutton cb_Lighting "LIGHTING" pos:[7,74] width:75 height:18 tooltip:"Lighting Tools"
      checkbutton cb_Materials "MATERIAL" pos:[7,94] width:75 height:18 tooltip:"Material Tools"
      checkbutton cb_Modeling "MODELING" pos:[7,114] width:75 height:18 tooltip:"Modeling Tools"
      checkbutton cb_Rendering "RENDERING" pos:[7,134] width:75 height:18 tooltip:"Rendering Tools"
      checkbutton cb_File "FILE TOOLS" pos:[7,154] width:75 height:18 tooltip:"FIle Tools"
      checkbutton cb_Optimize "OPTIMIZE" pos:[7,174] width:75 height:18 tooltip:"Optimize Tools"
      checkbutton cb_Tools "MISC TOOLS" pos:[7,194] width:75 height:18 tooltip:"Misc Tools"
      checkbutton cb_VRay "VRAY" pos:[7,214] width:75 height:18 tooltip:"VRay Tools"
      checkbutton cb_MR "MENTALRAY" pos:[7,234] width:75 height:18 tooltip:"MentalRay Tools"
      checkbutton cb_Camera "CAMERA"  pos:[7,254] width:75 height:18 tooltip:"Camera Tools"

      -- General Info and Hyperlink + Undock Button
      HyperLink hl_homepage "WEB" address:"http://www.homme3d.com/" color:(color 255 255 255) hovercolor:(color 111 111 111) visitedcolor:(color 255 255 255) width:40 height:16 pos:[9,780] across:3
      button btn_About "?" width:16 height:16 pos:[48,780] tooltip:"About"
      button btn_undock "U" width:16 height:16 pos:[68,780] tooltip:"Undock Aker Solutions Script Docking System"

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- SUB Rollout MISC TOOLS
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   rollout sub_Tools "Misc Tools"
   (
      button btn_Tool_01 "BUTTON 1" pos:[0,6] width:75 height:18
      button btn_Tool_02 "BUTTON 2" pos:[0,26] width:75 height:18
      button btn_Tool_03 "BUTTON 3" pos:[0,46] width:75 height:18
      button btn_Tool_04 "BUTTON 4" pos:[0,66] width:75 height:18
      button btn_Tool_05 "BUTTON 5" pos:[0,86] width:75 height:18
      button btn_Tool_06 "BUTTON 6" pos:[0,106] width:75 height:18
      button btn_Tool_07 "BUTTON 7" pos:[0,126] width:75 height:18
      button btn_Tool_08 "BUTTON 8" pos:[0,146] width:75 height:18
      button btn_Tool_09 "BUTTON 9" pos:[0,166] width:75 height:18
      button btn_Tool_10 "BUTTON 10" pos:[0,186] width:75 height:18
      button btn_Tool_11 "BUTTON 11" pos:[0,206] width:75 height:18
      button btn_Tool_12 "BUTTON 12" pos:[0,226] width:75 height:18
      button btn_Tool_13 "BUTTON 13" pos:[0,246] width:75 height:18
      button btn_Tool_14 "BUTTON 14" pos:[0,266] width:75 height:18
      button btn_Tool_15 "BUTTON 15" pos:[0,286] width:75 height:18
      button btn_Tool_16 "BUTTON 16" pos:[0,306] width:75 height:18
      button btn_Tool_17 "BUTTON 17" pos:[0,326] width:75 height:18
      button btn_Tool_18 "BUTTON 18" pos:[0,346] width:75 height:18
      button btn_Tool_19 "BUTTON 19" pos:[0,366] width:75 height:18
      button btn_Tool_20 "BUTTON 20" pos:[0,386] width:75 height:18
   
      on btn_Tool_01 pressed do
      (
         messagebox "Leser du denne beskjeden så virker knappen ;o)" title:"TEST!"
      )
   
      on btn_Tool_02 pressed do
      (
         fileIn "$scripts/AKSO/optimize/Lazy_Body_Object_Tool_V1.0.ms"
      )
   
   ) -- End Rollout
      
   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- SUB Rollout OPTIMIZE
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   rollout sub_Optimize "Optimize"
   (
      button btn_Optimize_01 "BUTTON 1" pos:[0,6] width:75 height:18
      button btn_Optimize_02 "BUTTON 2" pos:[0,26] width:75 height:18
      button btn_Optimize_03 "BUTTON 3" pos:[0,46] width:75 height:18
      button btn_Optimize_04 "BUTTON 4" pos:[0,66] width:75 height:18
      button btn_Optimize_05 "BUTTON 5" pos:[0,86] width:75 height:18
      button btn_Optimize_06 "BUTTON 6" pos:[0,106] width:75 height:18
      button btn_Optimize_07 "BUTTON 7" pos:[0,126] width:75 height:18
      button btn_Optimize_08 "BUTTON 8" pos:[0,146] width:75 height:18
      button btn_Optimize_09 "BUTTON 9" pos:[0,166] width:75 height:18
      button btn_Optimize_10 "BUTTON 10" pos:[0,186] width:75 height:18
      button btn_Optimize_11 "BUTTON 11" pos:[0,206] width:75 height:18
      button btn_Optimize_12 "BUTTON 12" pos:[0,226] width:75 height:18
      button btn_Optimize_13 "BUTTON 13" pos:[0,246] width:75 height:18
      button btn_Optimize_14 "BUTTON 14" pos:[0,266] width:75 height:18
      button btn_Optimize_15 "BUTTON 15" pos:[0,286] width:75 height:18
      button btn_Optimize_16 "BUTTON 16" pos:[0,306] width:75 height:18
      button btn_Optimize_17 "BUTTON 17" pos:[0,326] width:75 height:18
      button btn_Optimize_18 "BUTTON 18" pos:[0,346] width:75 height:18
      button btn_Optimize_19 "BUTTON 19" pos:[0,366] width:75 height:18
      button btn_Optimize_20 "BUTTON 20" pos:[0,386] width:75 height:18
            
      on btn_Optimize_01 pressed do
      (
         messagebox "Leser du denne beskjeden så virker knappen ;o)" title:"TEST!"
      )
   
      on btn_Optimize_02 pressed do
      (
         fileIn "$scripts/AKSO/optimize/Lazy_Body_Object_Tool_V1.0.ms"
      )
      
   ) -- End Rollout
      
   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- SUB Rollout FILE
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   rollout sub_File "File"
   (
      button btn_File_01 "BUTTON 1" pos:[0,6] width:75 height:18
      button btn_File_02 "BUTTON 2" pos:[0,26] width:75 height:18
      button btn_File_03 "BUTTON 3" pos:[0,46] width:75 height:18
      button btn_File_04 "BUTTON 4" pos:[0,66] width:75 height:18
      button btn_File_05 "BUTTON 5" pos:[0,86] width:75 height:18
      button btn_File_06 "BUTTON 6" pos:[0,106] width:75 height:18
      button btn_File_07 "BUTTON 7" pos:[0,126] width:75 height:18
      button btn_File_08 "BUTTON 8" pos:[0,146] width:75 height:18
      button btn_File_09 "BUTTON 9" pos:[0,166] width:75 height:18
      button btn_File_10 "BUTTON 10" pos:[0,186] width:75 height:18
      button btn_File_11 "BUTTON 11" pos:[0,206] width:75 height:18
      button btn_File_12 "BUTTON 12" pos:[0,226] width:75 height:18
      button btn_File_13 "BUTTON 13" pos:[0,246] width:75 height:18
      button btn_File_14 "BUTTON 14" pos:[0,266] width:75 height:18
      button btn_File_15 "BUTTON 15" pos:[0,286] width:75 height:18
      button btn_File_16 "BUTTON 16" pos:[0,306] width:75 height:18
      button btn_File_17 "BUTTON 17" pos:[0,326] width:75 height:18
      button btn_File_18 "BUTTON 18" pos:[0,346] width:75 height:18
      button btn_File_19 "BUTTON 19" pos:[0,366] width:75 height:18
      button btn_File_20 "BUTTON 20" pos:[0,386] width:75 height:18
            
      on btn_File_01 pressed do
      (
         messagebox "Leser du denne beskjeden så virker knappen ;o)" title:"TEST!"
      )
   
      on btn_File_02 pressed do
      (
         fileIn "$scripts/AKSO/optimize/Lazy_Body_Object_Tool_V1.0.ms"
      )
      
   ) -- End Rollout
   
   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- SUB Rollout MR (MentalRay)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   rollout sub_MR "MentalRay"
   (
      button btn_MR_01 "BUTTON 1" pos:[0,6] width:75 height:18
      button btn_MR_02 "BUTTON 2" pos:[0,26] width:75 height:18
      button btn_MR_03 "BUTTON 3" pos:[0,46] width:75 height:18
      button btn_MR_04 "BUTTON 4" pos:[0,66] width:75 height:18
      button btn_MR_05 "BUTTON 5" pos:[0,86] width:75 height:18
      button btn_MR_06 "BUTTON 6" pos:[0,106] width:75 height:18
      button btn_MR_07 "BUTTON 7" pos:[0,126] width:75 height:18
      button btn_MR_08 "BUTTON 8" pos:[0,146] width:75 height:18
      button btn_MR_09 "BUTTON 9" pos:[0,166] width:75 height:18
      button btn_MR_10 "BUTTON 10" pos:[0,186] width:75 height:18
      button btn_MR_11 "BUTTON 11" pos:[0,206] width:75 height:18
      button btn_MR_12 "BUTTON 12" pos:[0,226] width:75 height:18
      button btn_MR_13 "BUTTON 13" pos:[0,246] width:75 height:18
      button btn_MR_14 "BUTTON 14" pos:[0,266] width:75 height:18
      button btn_MR_15 "BUTTON 15" pos:[0,286] width:75 height:18
      button btn_MR_16 "BUTTON 16" pos:[0,306] width:75 height:18
      button btn_MR_17 "BUTTON 17" pos:[0,326] width:75 height:18
      button btn_MR_18 "BUTTON 18" pos:[0,346] width:75 height:18
      button btn_MR_19 "BUTTON 19" pos:[0,366] width:75 height:18
      button btn_MR_20 "BUTTON 20" pos:[0,386] width:75 height:18
            
      on btn_MR_01 pressed do
      (
         messagebox "Leser du denne beskjeden så virker knappen ;o)" title:"TEST!"
      )
   
      on btn_MR_02 pressed do
      (
         fileIn "$scripts/AKSO/optimize/Lazy_Body_Object_Tool_V1.0.ms"
      )
      
   ) -- End Rollout
   
   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- SUB Rollout VRay
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   rollout sub_VRay "VRay"
   (
      button btn_VRay_01 "BUTTON 1" pos:[0,6] width:75 height:18
      button btn_VRay_02 "BUTTON 2" pos:[0,26] width:75 height:18
      button btn_VRay_03 "BUTTON 3" pos:[0,46] width:75 height:18
      button btn_VRay_04 "BUTTON 4" pos:[0,66] width:75 height:18
      button btn_VRay_05 "BUTTON 5" pos:[0,86] width:75 height:18
      button btn_VRay_06 "BUTTON 6" pos:[0,106] width:75 height:18
      button btn_VRay_07 "BUTTON 7" pos:[0,126] width:75 height:18
      button btn_VRay_08 "BUTTON 8" pos:[0,146] width:75 height:18
      button btn_VRay_09 "BUTTON 9" pos:[0,166] width:75 height:18
      button btn_VRay_10 "BUTTON 10" pos:[0,186] width:75 height:18
      button btn_VRay_11 "BUTTON 11" pos:[0,206] width:75 height:18
      button btn_VRay_12 "BUTTON 12" pos:[0,226] width:75 height:18
      button btn_VRay_13 "BUTTON 13" pos:[0,246] width:75 height:18
      button btn_VRay_14 "BUTTON 14" pos:[0,266] width:75 height:18
      button btn_VRay_15 "BUTTON 15" pos:[0,286] width:75 height:18
      button btn_VRay_16 "BUTTON 16" pos:[0,306] width:75 height:18
      button btn_VRay_17 "BUTTON 17" pos:[0,326] width:75 height:18
      button btn_VRay_18 "BUTTON 18" pos:[0,346] width:75 height:18
      button btn_VRay_19 "BUTTON 19" pos:[0,366] width:75 height:18
      button btn_VRay_20 "BUTTON 20" pos:[0,386] width:75 height:18
            
      on btn_VRay_01 pressed do
      (
         messagebox "Leser du denne beskjeden så virker knappen ;o)" title:"TEST!"
      )
   
      on btn_VRay_02 pressed do
      (
         fileIn "$scripts/AKSO/optimize/Lazy_Body_Object_Tool_V1.0.ms"
      )
      
   ) -- End Rollout   
   
   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- SUB Rollout Rendering
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   rollout sub_Rendering "Rendering"
   (
      button btn_Rendering_01 "BUTTON 1" pos:[0,6] width:75 height:18
      button btn_Rendering_02 "BUTTON 2" pos:[0,26] width:75 height:18
      button btn_Rendering_03 "BUTTON 3" pos:[0,46] width:75 height:18
      button btn_Rendering_04 "BUTTON 4" pos:[0,66] width:75 height:18
      button btn_Rendering_05 "BUTTON 5" pos:[0,86] width:75 height:18
      button btn_Rendering_06 "BUTTON 6" pos:[0,106] width:75 height:18
      button btn_Rendering_07 "BUTTON 7" pos:[0,126] width:75 height:18
      button btn_Rendering_08 "BUTTON 8" pos:[0,146] width:75 height:18
      button btn_Rendering_09 "BUTTON 9" pos:[0,166] width:75 height:18
      button btn_Rendering_10 "BUTTON 10" pos:[0,186] width:75 height:18
      button btn_Rendering_11 "BUTTON 11" pos:[0,206] width:75 height:18
      button btn_Rendering_12 "BUTTON 12" pos:[0,226] width:75 height:18
      button btn_Rendering_13 "BUTTON 13" pos:[0,246] width:75 height:18
      button btn_Rendering_14 "BUTTON 14" pos:[0,266] width:75 height:18
      button btn_Rendering_15 "BUTTON 15" pos:[0,286] width:75 height:18
      button btn_Rendering_16 "BUTTON 16" pos:[0,306] width:75 height:18
      button btn_Rendering_17 "BUTTON 17" pos:[0,326] width:75 height:18
      button btn_Rendering_18 "BUTTON 18" pos:[0,346] width:75 height:18
      button btn_Rendering_19 "BUTTON 19" pos:[0,366] width:75 height:18
      button btn_Rendering_20 "BUTTON 20" pos:[0,386] width:75 height:18
            
      on btn_Rendering_01 pressed do
      (
         messagebox "Leser du denne beskjeden så virker knappen ;o)" title:"TEST!"
      )
   
      on btn_Rendering_02 pressed do
      (
         fileIn "$scripts/AKSO/optimize/Lazy_Body_Object_Tool_V1.0.ms"
      )
      
   ) -- End Rollout   
   
   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- SUB Rollout Modeling
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   rollout sub_Modeling "Modeling"
   (
      button btn_Modeling_01 "BUTTON 1" pos:[0,6] width:75 height:18
      button btn_Modeling_02 "BUTTON 2" pos:[0,26] width:75 height:18
      button btn_Modeling_03 "BUTTON 3" pos:[0,46] width:75 height:18
      button btn_Modeling_04 "BUTTON 4" pos:[0,66] width:75 height:18
      button btn_Modeling_05 "BUTTON 5" pos:[0,86] width:75 height:18
      button btn_Modeling_06 "BUTTON 6" pos:[0,106] width:75 height:18
      button btn_Modeling_07 "BUTTON 7" pos:[0,126] width:75 height:18
      button btn_Modeling_08 "BUTTON 8" pos:[0,146] width:75 height:18
      button btn_Modeling_09 "BUTTON 9" pos:[0,166] width:75 height:18
      button btn_Modeling_10 "BUTTON 10" pos:[0,186] width:75 height:18
      button btn_Modeling_11 "BUTTON 11" pos:[0,206] width:75 height:18
      button btn_Modeling_12 "BUTTON 12" pos:[0,226] width:75 height:18
      button btn_Modeling_13 "BUTTON 13" pos:[0,246] width:75 height:18
      button btn_Modeling_14 "BUTTON 14" pos:[0,266] width:75 height:18
      button btn_Modeling_15 "BUTTON 15" pos:[0,286] width:75 height:18
      button btn_Modeling_16 "BUTTON 16" pos:[0,306] width:75 height:18
      button btn_Modeling_17 "BUTTON 17" pos:[0,326] width:75 height:18
      button btn_Modeling_18 "BUTTON 18" pos:[0,346] width:75 height:18
      button btn_Modeling_19 "BUTTON 19" pos:[0,366] width:75 height:18
      button btn_Modeling_20 "BUTTON 20" pos:[0,386] width:75 height:18
            
      on btn_Modeling_01 pressed do
      (
         messagebox "Leser du denne beskjeden så virker knappen ;o)" title:"TEST!"
      )
   
      on btn_Modeling_02 pressed do
      (
         fileIn "$scripts/AKSO/optimize/Lazy_Body_Object_Tool_V1.0.ms"
      )
      
   ) -- End Rollout   


-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- SUB Rollout Materials
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   rollout sub_Materials "Materials"
   (
      button btn_Materials_01 "BUTTON 1" pos:[0,6] width:75 height:18
      button btn_Materials_02 "BUTTON 2" pos:[0,26] width:75 height:18
      button btn_Materials_03 "BUTTON 3" pos:[0,46] width:75 height:18
      button btn_Materials_04 "BUTTON 4" pos:[0,66] width:75 height:18
      button btn_Materials_05 "BUTTON 5" pos:[0,86] width:75 height:18
      button btn_Materials_06 "BUTTON 6" pos:[0,106] width:75 height:18
      button btn_Materials_07 "BUTTON 7" pos:[0,126] width:75 height:18
      button btn_Materials_08 "BUTTON 8" pos:[0,146] width:75 height:18
      button btn_Materials_09 "BUTTON 9" pos:[0,166] width:75 height:18
      button btn_Materials_10 "BUTTON 10" pos:[0,186] width:75 height:18
      button btn_Materials_11 "BUTTON 11" pos:[0,206] width:75 height:18
      button btn_Materials_12 "BUTTON 12" pos:[0,226] width:75 height:18
      button btn_Materials_13 "BUTTON 13" pos:[0,246] width:75 height:18
      button btn_Materials_14 "BUTTON 14" pos:[0,266] width:75 height:18
      button btn_Materials_15 "BUTTON 15" pos:[0,286] width:75 height:18
      button btn_Materials_16 "BUTTON 16" pos:[0,306] width:75 height:18
      button btn_Materials_17 "BUTTON 17" pos:[0,326] width:75 height:18
      button btn_Materials_18 "BUTTON 18" pos:[0,346] width:75 height:18
      button btn_Materials_19 "BUTTON 19" pos:[0,366] width:75 height:18
      button btn_Materials_20 "BUTTON 20" pos:[0,386] width:75 height:18
            
      on btn_Materials_01 pressed do
      (
         messagebox "Leser du denne beskjeden så virker knappen ;o)" title:"TEST!"
      )
   
      on btn_Materials_02 pressed do
      (
         fileIn "$scripts/AKSO/optimize/Lazy_Body_Object_Tool_V1.0.ms"
      )
      
   ) -- End Rollout   
   
   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- SUB Rollout Lighting
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   rollout sub_Lighting "Lighting"
   (
      button btn_Lighting_01 "BUTTON 1" pos:[0,6] width:75 height:18
      button btn_Lighting_02 "BUTTON 2" pos:[0,26] width:75 height:18
      button btn_Lighting_03 "BUTTON 3" pos:[0,46] width:75 height:18
      button btn_Lighting_04 "BUTTON 4" pos:[0,66] width:75 height:18
      button btn_Lighting_05 "BUTTON 5" pos:[0,86] width:75 height:18
      button btn_Lighting_06 "BUTTON 6" pos:[0,106] width:75 height:18
      button btn_Lighting_07 "BUTTON 7" pos:[0,126] width:75 height:18
      button btn_Lighting_08 "BUTTON 8" pos:[0,146] width:75 height:18
      button btn_Lighting_09 "BUTTON 9" pos:[0,166] width:75 height:18
      button btn_Lighting_10 "BUTTON 10" pos:[0,186] width:75 height:18
      button btn_Lighting_11 "BUTTON 11" pos:[0,206] width:75 height:18
      button btn_Lighting_12 "BUTTON 12" pos:[0,226] width:75 height:18
      button btn_Lighting_13 "BUTTON 13" pos:[0,246] width:75 height:18
      button btn_Lighting_14 "BUTTON 14" pos:[0,266] width:75 height:18
      button btn_Lighting_15 "BUTTON 15" pos:[0,286] width:75 height:18
      button btn_Lighting_16 "BUTTON 16" pos:[0,306] width:75 height:18
      button btn_Lighting_17 "BUTTON 17" pos:[0,326] width:75 height:18
      button btn_Lighting_18 "BUTTON 18" pos:[0,346] width:75 height:18
      button btn_Lighting_19 "BUTTON 19" pos:[0,366] width:75 height:18
      button btn_Lighting_20 "BUTTON 20" pos:[0,386] width:75 height:18
            
      on btn_Lighting_01 pressed do
      (
         messagebox "Leser du denne beskjeden så virker knappen ;o)" title:"TEST!"
      )
   
      on btn_Lighting_02 pressed do
      (
         fileIn "$scripts/AKSO/optimize/Lazy_Body_Object_Tool_V1.0.ms"
      )
      
   ) -- End Rollout
   
   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- SUB Rollout Riging
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   rollout sub_Riging "Riging"
   (
      button btn_Riging_01 "BUTTON 1" pos:[0,6] width:75 height:18
      button btn_Riging_02 "BUTTON 2" pos:[0,26] width:75 height:18
      button btn_Riging_03 "BUTTON 3" pos:[0,46] width:75 height:18
      button btn_Riging_04 "BUTTON 4" pos:[0,66] width:75 height:18
      button btn_Riging_05 "BUTTON 5" pos:[0,86] width:75 height:18
      button btn_Riging_06 "BUTTON 6" pos:[0,106] width:75 height:18
      button btn_Riging_07 "BUTTON 7" pos:[0,126] width:75 height:18
      button btn_Riging_08 "BUTTON 8" pos:[0,146] width:75 height:18
      button btn_Riging_09 "BUTTON 9" pos:[0,166] width:75 height:18
      button btn_Riging_10 "BUTTON 10" pos:[0,186] width:75 height:18
      button btn_Riging_11 "BUTTON 11" pos:[0,206] width:75 height:18
      button btn_Riging_12 "BUTTON 12" pos:[0,226] width:75 height:18
      button btn_Riging_13 "BUTTON 13" pos:[0,246] width:75 height:18
      button btn_Riging_14 "BUTTON 14" pos:[0,266] width:75 height:18
      button btn_Riging_15 "BUTTON 15" pos:[0,286] width:75 height:18
      button btn_Riging_16 "BUTTON 16" pos:[0,306] width:75 height:18
      button btn_Riging_17 "BUTTON 17" pos:[0,326] width:75 height:18
      button btn_Riging_18 "BUTTON 18" pos:[0,346] width:75 height:18
      button btn_Riging_19 "BUTTON 19" pos:[0,366] width:75 height:18
      button btn_Riging_20 "BUTTON 20" pos:[0,386] width:75 height:18
            
      on btn_Riging_01 pressed do
      (
         messagebox "Leser du denne beskjeden så virker knappen ;o)" title:"TEST!"
      )
   
      on btn_Riging_02 pressed do
      (
         fileIn "$scripts/AKSO/optimize/Lazy_Body_Object_Tool_V1.0.ms"
      )
      
   ) -- End Rollout   
   
   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- SUB Rollout Animation
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   rollout sub_Animation "Animation"
   (
      button btn_Animation_01 "BUTTON 1" pos:[0,6] width:75 height:18
      button btn_Animation_02 "BUTTON 2" pos:[0,26] width:75 height:18
      button btn_Animation_03 "BUTTON 3" pos:[0,46] width:75 height:18
      button btn_Animation_04 "BUTTON 4" pos:[0,66] width:75 height:18
      button btn_Animation_05 "BUTTON 5" pos:[0,86] width:75 height:18
      button btn_Animation_06 "BUTTON 6" pos:[0,106] width:75 height:18
      button btn_Animation_07 "BUTTON 7" pos:[0,126] width:75 height:18
      button btn_Animation_08 "BUTTON 8" pos:[0,146] width:75 height:18
      button btn_Animation_09 "BUTTON 9" pos:[0,166] width:75 height:18
      button btn_Animation_10 "BUTTON 10" pos:[0,186] width:75 height:18
      button btn_Animation_11 "BUTTON 11" pos:[0,206] width:75 height:18
      button btn_Animation_12 "BUTTON 12" pos:[0,226] width:75 height:18
      button btn_Animation_13 "BUTTON 13" pos:[0,246] width:75 height:18
      button btn_Animation_14 "BUTTON 14" pos:[0,266] width:75 height:18
      button btn_Animation_15 "BUTTON 15" pos:[0,286] width:75 height:18
      button btn_Animation_16 "BUTTON 16" pos:[0,306] width:75 height:18
      button btn_Animation_17 "BUTTON 17" pos:[0,326] width:75 height:18
      button btn_Animation_18 "BUTTON 18" pos:[0,346] width:75 height:18
      button btn_Animation_19 "BUTTON 19" pos:[0,366] width:75 height:18
      button btn_Animation_20 "BUTTON 20" pos:[0,386] width:75 height:18
            
      on btn_Animation_01 pressed do
      (
         messagebox "Leser du denne beskjeden så virker knappen ;o)" title:"TEST!"
      )
   
      on btn_Animation_02 pressed do
      (
         fileIn "$scripts/AKSO/optimize/Lazy_Body_Object_Tool_V1.0.ms"
      )
      
   ) -- End Rollout   
   
   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- SUB Rollout Scene
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   rollout sub_Scene "Scene"
   (
      button btn_Scene_01 "BUTTON 1" pos:[0,6] width:75 height:18
      button btn_Scene_02 "BUTTON 2" pos:[0,26] width:75 height:18
      button btn_Scene_03 "BUTTON 3" pos:[0,46] width:75 height:18
      button btn_Scene_04 "BUTTON 4" pos:[0,66] width:75 height:18
      button btn_Scene_05 "BUTTON 5" pos:[0,86] width:75 height:18
      button btn_Scene_06 "BUTTON 6" pos:[0,106] width:75 height:18
      button btn_Scene_07 "BUTTON 7" pos:[0,126] width:75 height:18
      button btn_Scene_08 "BUTTON 8" pos:[0,146] width:75 height:18
      button btn_Scene_09 "BUTTON 9" pos:[0,166] width:75 height:18
      button btn_Scene_10 "BUTTON 10" pos:[0,186] width:75 height:18
      button btn_Scene_11 "BUTTON 11" pos:[0,206] width:75 height:18
      button btn_Scene_12 "BUTTON 12" pos:[0,226] width:75 height:18
      button btn_Scene_13 "BUTTON 13" pos:[0,246] width:75 height:18
      button btn_Scene_14 "BUTTON 14" pos:[0,266] width:75 height:18
      button btn_Scene_15 "BUTTON 15" pos:[0,286] width:75 height:18
      button btn_Scene_16 "BUTTON 16" pos:[0,306] width:75 height:18
      button btn_Scene_17 "BUTTON 17" pos:[0,326] width:75 height:18
      button btn_Scene_18 "BUTTON 18" pos:[0,346] width:75 height:18
      button btn_Scene_19 "BUTTON 19" pos:[0,366] width:75 height:18
      button btn_Scene_20 "BUTTON 20" pos:[0,386] width:75 height:18
            
      on btn_Scene_01 pressed do
      (
         messagebox "Leser du denne beskjeden så virker knappen ;o)" title:"TEST!"
      )
   
      on btn_Scene_02 pressed do
      (
         fileIn "$scripts/AKSO/optimize/Lazy_Body_Object_Tool_V1.0.ms"
      )
      
   ) -- End Rollout   
   
   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- SUB Rollout Camera
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   rollout sub_Camera "Scene"
   (
      button btn_Camera_01 "BUTTON 1" pos:[0,6] width:75 height:18
      button btn_Camera_02 "BUTTON 2" pos:[0,26] width:75 height:18
      button btn_Camera_03 "BUTTON 3" pos:[0,46] width:75 height:18
      button btn_Camera_04 "BUTTON 4" pos:[0,66] width:75 height:18
      button btn_Camera_05 "BUTTON 5" pos:[0,86] width:75 height:18
      button btn_Camera_06 "BUTTON 6" pos:[0,106] width:75 height:18
      button btn_Camera_07 "BUTTON 7" pos:[0,126] width:75 height:18
      button btn_Camera_08 "BUTTON 8" pos:[0,146] width:75 height:18
      button btn_Camera_09 "BUTTON 9" pos:[0,166] width:75 height:18
      button btn_Camera_10 "BUTTON 10" pos:[0,186] width:75 height:18
      button btn_Camera_11 "BUTTON 11" pos:[0,206] width:75 height:18
      button btn_Camera_12 "BUTTON 12" pos:[0,226] width:75 height:18
      button btn_Camera_13 "BUTTON 13" pos:[0,246] width:75 height:18
      button btn_Camera_14 "BUTTON 14" pos:[0,266] width:75 height:18
      button btn_Camera_15 "BUTTON 15" pos:[0,286] width:75 height:18
      button btn_Camera_16 "BUTTON 16" pos:[0,306] width:75 height:18
      button btn_Camera_17 "BUTTON 17" pos:[0,326] width:75 height:18
      button btn_Camera_18 "BUTTON 18" pos:[0,346] width:75 height:18
      button btn_Camera_19 "BUTTON 19" pos:[0,366] width:75 height:18
      button btn_Camera_20 "BUTTON 20" pos:[0,386] width:75 height:18
            
      on btn_Camera_01 pressed do
      (
         messagebox "Leser du denne beskjeden så virker knappen ;o)" title:"TEST!"
      )
   
      on btn_Camera_02 pressed do
      (
         fileIn "$scripts/AKSO/optimize/Lazy_Body_Object_Tool_V1.0.ms"
      )
      
   ) -- End Rollout   
   
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Undock, Hyperlink and About Stuff!!
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   on btn_undock pressed do
   (
      try(cui.unregisterDialogBar roll_AKSO_TOOLS) catch()
      
      cui.RegisterDialogBar roll_AKSO_TOOLS minSize:[90,200] maxSize:[90,800] style:\
      #(#cui_dock_left, #cui_dock_right, #cui_floatable,#cui_handles,#cui_max_sized)
      
      cui.dockDialogBar roll_AKSO_TOOLS #cui_floatable
   )
   
      on btn_About pressed do
      (
      messagebox "
[DESCRIPTION]
Aker Solutions Script Docking System V1.0 – Collecting all scripts in one UI to make the workflow faster.

[INFO]
- Put the files in maxroot\scripts\ (e.g.: C:\3dsmax2012\Scripts\)
- Works with Max 2008 -> 2012

[CREATION INFO]
Author: Raymond Homme Ingebretsen
Last Modified: Feb 05, 2012
Webpage: http://www.homme3d.com

[History]
Feb 05, 2012: First official Version of script.

" Title:"About:") --end
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- MAIN MENU BUTTONS TO OPEN SUB MENU/BUTTONS
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   
----------------------------------------------------
-- MAIN MENU: Scene Button
----------------------------------------------------
   on cb_Scene changed state do
   (
      case state of
      (
         true:(
            AddSubRollout subroll_IncludeInRollout sub_Scene
         )
         false:(
            removeSubRollout  subroll_IncludeInRollout sub_Scene
         )   
      )      
   )
   
----------------------------------------------------
-- MAIN MENU: Animation Button
----------------------------------------------------
   on cb_Animation changed state do
   (
      case   state   of
      (
         true:(
            AddSubRollout subroll_IncludeInRollout sub_Animation
         )
         false:(
            removeSubRollout  subroll_IncludeInRollout sub_Animation
         )   
      )   
   )
   
----------------------------------------------------
-- MAIN MENU: Character Button
----------------------------------------------------
   on cb_Riging changed state do
   (
      case   state   of
      (
         true:(
            AddSubRollout subroll_IncludeInRollout sub_Riging
         )
         false:(
            removeSubRollout  subroll_IncludeInRollout sub_Riging               
         )   
      )      
   )
   
----------------------------------------------------
-- MAIN MENU: Lighting Button
----------------------------------------------------
   on cb_Lighting changed state do
   (
      case   state   of
      (
         true:(
            AddSubRollout subroll_IncludeInRollout sub_Lighting
         )
         false:(
             removeSubRollout  subroll_IncludeInRollout sub_Lighting      
         )   
      )      
   )
   
----------------------------------------------------
-- MAIN MENU: Materials Button
----------------------------------------------------
   on cb_Materials changed state do
   (
      case   state   of
      (
         true:(
            AddSubRollout subroll_IncludeInRollout sub_Materials
         )
         false:(
            removeSubRollout  subroll_IncludeInRollout sub_Materials         
         )   
      )      
   )
   
----------------------------------------------------
-- MAIN MENU: Modeling Button
----------------------------------------------------
   on cb_Modeling changed state do
   (
      case   state   of
      (
         true:(
            AddSubRollout subroll_IncludeInRollout sub_Modeling
         )
         false:(
             removeSubRollout  subroll_IncludeInRollout sub_Modeling
         )   
      )      
   )
   
----------------------------------------------------
-- MAIN MENU: Rendering Button
----------------------------------------------------
   on cb_Rendering changed state do
   (
      case   state   of
      (
         true:(
            AddSubRollout subroll_IncludeInRollout sub_Rendering
         )
         false:(
            removeSubRollout  subroll_IncludeInRollout sub_Rendering            
         )   
      )      
   )
   
----------------------------------------------------
-- MAIN MENU: VRay Button
----------------------------------------------------
   on cb_VRay changed state do
   (
      case   state   of
      (
         true:(
            AddSubRollout subroll_IncludeInRollout sub_VRay
         )
         false:(
            removeSubRollout  subroll_IncludeInRollout sub_VRay               
         )   
      )   
   )
   
----------------------------------------------------
-- MAIN MENU: MentalRay Button
----------------------------------------------------
   on cb_MR changed state do
   (
      case   state   of
      (
         true:(
            AddSubRollout subroll_IncludeInRollout sub_MR
         )
         false:(
            removeSubRollout  subroll_IncludeInRollout sub_MR               
         )   
      )   
   )
   
----------------------------------------------------
-- MAIN MENU: File Button
----------------------------------------------------
   on cb_File changed state do
   (
      case   state   of
      (
         true:(
            AddSubRollout subroll_IncludeInRollout sub_File
         )
         false:(
            removeSubRollout  subroll_IncludeInRollout sub_File               
         )   
      )         
   )
   
----------------------------------------------------
-- MAIN MENU: Optimize Button
----------------------------------------------------
   on cb_Optimize changed state do
   (
      case   state   of
      (
         true:(
            AddSubRollout subroll_IncludeInRollout sub_Optimize
         )
         false:(
            removeSubRollout  subroll_IncludeInRollout sub_Optimize            
         )   
      )   
   )
   
----------------------------------------------------
-- MAIN MENU: Tools Button
----------------------------------------------------
   on cb_Tools changed state do
   (
      case   state   of
      (
         true:(
            AddSubRollout subroll_IncludeInRollout sub_Tools
         )
         false:(
            removeSubRollout  subroll_IncludeInRollout sub_Tools               
         )   
      )         
   )
   
----------------------------------------------------
-- MAIN MENU: Camera Button
----------------------------------------------------
   on cb_Camera changed state do
   (
      case   state   of
      (
         true:(
            AddSubRollout subroll_IncludeInRollout sub_Camera
         )
         false:(
            removeSubRollout  subroll_IncludeInRollout sub_Camera               
         )   
      )         
   )
   
   
)  -- End  roll_AKSO_TOOLS


-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Create Dialog Stuff
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

-- Create Main Dialog
createdialog   roll_AKSO_TOOLS  width:90 height:800 pos:[30,90] 

-- Register Dialog Bar and giving it some rules ;o)
cui.RegisterDialogBar roll_AKSO_TOOLS minSize:[90,200] maxSize:[90,800] style:\
#(#cui_dock_left, #cui_dock_right, #cui_floatable,#cui_handles,#cui_max_sized)

-- Making the Dockable DialogBar Floatable as default
cui.dockDialogBar roll_AKSO_TOOLS #cui_floatable

-- // EOF

[/spoiler]


[spoiler]

Kode: Velg alt

try(destroyDialog ::Rol_MS)catch()

rollout Rol_MS "• • • TEST ROLLOUT • • •"
(
-- UI
   group ""
   (
      button btn_Calc "Calculator" height:22 width:95 across:2 align:#left
      button btn_Cmd "CMD" height:22 width:95 align:#right
      button btn_ftp "FTP" height:22 width:95 across:2 align:#left
      button btn_Npad "NotePad" height:22 width:95 align:#right
   )
   
   group ""
   (
      button btn_CtrlP "Control Panel" height:22 width:95 across:2 align:#left
      button btn_DispSwitch "Display Switch" height:22 width:95 align:#right
      button btn_msconfig "MS Config" height:22 width:95 across:2 align:#left
      button btn_regEd "Reg Edit" height:22 width:95 align:#right
      button btn_Msp "MS paint" height:22 width:95 across:2 align:#left
      button btn_rMon "Resource Monitor" height:22 width:95 align:#right
   )
   
      HyperLink homepage "..:: Raymond H.Ingebretsen'2013 ::.." address:"http://www.homme3d.com/" color:(color 000 000 000) hovercolor:(color 255 200 000) visitedcolor:(color 000 000 000) align:#center

-- on ...... Pressed...
   
   on btn_Calc pressed do
   (
      calcPath=sysInfo.systemdir+"\\calc.exe"
      if doesfileexist calcPath do ShellLaunch calcPath ""
   )

   on btn_Cmd pressed do
   (
      calcPath=sysInfo.systemdir+"\\cmd.exe"
      if doesfileexist calcPath do ShellLaunch calcPath ""
   )
   
   on btn_CtrlP pressed do
   (
      calcPath=sysInfo.systemdir+"\\control.exe"
      if doesfileexist calcPath do ShellLaunch calcPath ""
   )
   
   on btn_DispSwitch pressed do
   (
      calcPath=sysInfo.systemdir+"\\DisplaySwitch.exe"
      if doesfileexist calcPath do ShellLaunch calcPath ""
   )

   on btn_ftp pressed do
   (
      calcPath=sysInfo.systemdir+"\\ftp.exe"
      if doesfileexist calcPath do ShellLaunch calcPath ""
   )
   
   on btn_msconfig pressed do
   (
      calcPath=sysInfo.systemdir+"\\msconfig.exe"
      if doesfileexist calcPath do ShellLaunch calcPath ""
   )
   
   on btn_Msp pressed do
   (
      calcPath=sysInfo.systemdir+"\\mspaint.exe"
      if doesfileexist calcPath do ShellLaunch calcPath ""
   )
   
   on btn_Npad pressed do
   (
      calcPath=sysInfo.systemdir+"\\notepad.exe"
      if doesfileexist calcPath do ShellLaunch calcPath ""   
   )
   
   on btn_regEd pressed do
   (
      calcPath=sysInfo.systemdir+"\\regedt32.exe"
      if doesfileexist calcPath do ShellLaunch calcPath ""   
   )

   on btn_rMon pressed do
   (
      calcPath=sysInfo.systemdir+"\\resmon.exe"
      if doesfileexist calcPath do ShellLaunch calcPath ""   
   )
   
)
createDialog Rol_MS height:210 width:220
[/spoiler]


Trådstarter
hardrock_ram
Innlegg: 1502
Registrert: ons 07 feb, 2007
Sted: Kristiansand

Legg innav hardrock_ram » fre 10 jan, 2014

Tusen takk! Det første scriptet var midt i blinken. Jeg skal se på koden senere, men det gjorde ihvertfall akkurat det jeg er ute etter :)
if your not living on a killing ground, you better make your own


Gå tilbake til «Max scripts»

Hvem er online

Brukere i dette forumet: Ingen registrerte brukere og 2 gjester

cron