Hi all
i've got a problem, my form consists of a listbox populated with characters filenames and a button which when a item from the listbox is selected will place that character in the viewport. this works perfectly fine with no issues.
selectchar is a shared string variable, and charselect is a shared DarkGDK.Basic3D.Object3D
here is the code in my sub to add a character to the viewport:
selectedchar = fMain.ListBox1.SelectedItem
DarkGDK.IO.File.SetCurrentDirectory(charpath)
charselect = New DarkGDK.Basic3D.Object3D(selectedchar)
charselect.Position(x, y - 42, z)
DarkGDK.Camera.DefaultCamera.PositionCurrent(x, y, z - 50)
DarkGDK.Core.Sync()
i've also got another button which as you've guessed removes a selected character from the viewport but it isn't working.
here is the code in my sub to remove a character from the viewport:
selectedchar = fMain.ListBox1.SelectedItem
charselect = New DarkGDK.Basic3D.Object3D(selectedchar)
charselect.Delete()
any help would be great thanks.