title: Maxscript filepath read?
body: <p>Hey guys i have this simple script that am testing. At the moment it basically lets you pick a bitmap and then adds the path to the edittext. The assign shader button created a materials and assigns it. What i am looking to do is use the user path to define a bitmap texture to add to the diffuse slot. Kinda stuck there. thanks for the help in advanced. here is the script so far</p>
  
  <p>try(DestroyDialog Browse)catch()</p>
  
  <p>Rollout Browse "Browse" width:550 height:150</p>
  
  <p>(</p>
  
  <pre><code>button btn_browse "browse" pos:[430,20]
  button btn_assin "Assign Shader "
  edittext edt_image "ImageFile:" fieldWidth: 350 pos:[5,22]
  
  on btn_browse pressed do
  (
      imgDir = getOpenFilename caption: "Open File"   types: "Jpg (*.jpg)|*.jpg|Exr (*.exr)|*.exr|Tif (*.tif)|*.tif|ALL|*.*|"
      edt_image.text = imgDir
  
  )
  
  on btn_assin pressed do
          (   
              if edt_image != undefined do
              (   
                  for i in selection do
                      (
                      i.material =  meditmaterials[1].diffuseMap = Bitmaptexture filename: ????????????????????
                      )
              )
          )
  </code></pre>
  
  <p>)</p>
  
  <p>createdialog Browse</p>