> im trying to replace a 3d sphere in the Q3Dmaster, with a cube model.
> i added ajax with the request url to the folder and model but nothing happens, my app is also hosted on the ftp.
> Maybe i have done something wrong, but how to change a model in the app by another model present on the ftp?
>
> here its my capx file http://mattepainting.be/test/Gsphere.capx
>
First of all be certain same-origin-policy is followed.
For that you need to be sure your project is hosted on the same domain as the model (usually). Also the loader uses a URL, so you don't have to use the ajax object to download the file, and the way you're dumping "lastdata" into the URL field can't work.
what you can do instead (and much more easily) is set Model name in the change model action to "http://mattepainting.be/test/models/cube.obj". You could also even set the Model Filename property in the layout editor to http://mattepainting.be/test/models/cube.obj and it'll work properly assuming same-origin-policy is followed (for node webkit it probably doesn't matter, so you could use any url pointing to a valid object).
Also, you're attempting to modify the material of the object before its created. you need to do that kind of thing in an "on model created" trigger condition, or after you're certain it's not being created, or else your changes wont take effect when the model is asynchronously created.