does anyone know whether it is possible to import/merge/open a 3d model file from a web address via maxscript? The script here would work if the address is local but not for a web address:
rollout Lib "Library" width:412 height:362 ( button 'generate' "model Library" pos:[117,243] width:171 height:38 align:#left on generate pressed do ( fobj_names = getmaxfileobjectnames "mergetest.max" mergemaxfile "https://webaddress.com/mergetest.max" fobj_names #select ) ) CreateDialog Lib
Replies
you could try this....
thanks so much for this! I still have an error message when I run it though.. any ideas?
yeah I think that's a windows security thang
change every "mergetest.max"
to somewhere else eg "C:/mydata/mergetest.max" where you have access
thank you .. works great! where did you learn this kind of stuff if you don't mind me asking? so few people know about it :)
experience mostly (doing it for a long time means I know where to look or have an example knocking around) mixed with trial and error :)
sorry to be a pest. I was wondering if you have any ideas on how to get the bitmap in the ui to display an image from a web url too?
think you'd have to do the same as the max file and download the image with the dotnet client
you could put the download code in an
on open event for the rollout
then use
<bitmap>.filename String
to update the control
thank you .. works :)
cool, i don't do that much maxscript rollout coding these days