Ricardo Eloy Posted February 22, 2007 Share Posted February 22, 2007 Hey, guys! I decided to start writing my own scripts for the new office and created a script to load preset scenes for interiors, exteriors and object renderings. Since we are going to hire some new heads, I thought it would be a good idea to have a tool that allows one to pick from 3 presets (that we can modify as we find convenient) to start working from. So far, it looks like this: It's very simple, but I guess it will do what we need. Anyways, there are 2 things that I can't figure out how to do: 1) I want to have a second rollout named "Info", where the user can find an explanatory text on what each preset does. How do I insert a plain, simple text there? I know how to create editable texts, textfields, a text command...LOL... but just can't get a simple text to show up there... 2) Is there a way to set this rollout to start closed instead of open by default? Thanks! Link to comment Share on other sites More sharing options...
Koper Posted February 22, 2007 Share Posted February 22, 2007 that is pretty cool Rick!! sorry, i can only comment on your cool feature, as scripting goes, you are miles ahead of me.. lol ... ... ... so... ... you gonna release to the masses?, in english? oh and i have always thought you spelled it 'objeCto hehe Link to comment Share on other sites More sharing options...
Ricardo Eloy Posted February 22, 2007 Author Share Posted February 22, 2007 Thanks, Koper! "ObjeCto" is how they say it in Portugal. Our portuguese is a bit different... Anyway, as son as I finish it (and the preset scenes as well) I'll translate it into english and "release" it... Link to comment Share on other sites More sharing options...
gmlealll Posted February 23, 2007 Share Posted February 23, 2007 Hey Ricardo, try this. rollout test "text" width:80 height:40 ( button btn2 "Help" on btn2 pressed do ( messagebox "* help file. \n --- Explanatory texts (it's probably really basic...) \n --- test test test test test \n Guillermo M. Leal LLaguno " beep:false ) ) createdialog test hope it helps Guillermo Leal Link to comment Share on other sites More sharing options...
quizzy Posted February 24, 2007 Share Posted February 24, 2007 heya rick, check out the attached ms file. why not make the buttons those images... that would be cool I think... Link to comment Share on other sites More sharing options...
Ricardo Eloy Posted February 24, 2007 Author Share Posted February 24, 2007 Guillermo: Thanks for the lines, man! It's not quite what I was looking for, since I wanted to have the info in the same window as the buttons, but that's certainly a way to do it! Quizzy: great idea! I love the concept of having the info changing with the button the user presses. Really nice! I'll try to incorporate that to my script and show you guys how it turns out. And yes, I'm also considering turnig the images into buttons. Link to comment Share on other sites More sharing options...
Ricardo Eloy Posted February 28, 2007 Author Share Posted February 28, 2007 Back for more, folks! No I have a problem with the following lines: on btnCenaInt pressed do ( LoadMaxFile "C:/reb digital/reb digital presets/interior.max" getMAXSaveFileName filename: "C:/temp/filename" ) I can get the "Save File as..."dialog to appear but it simply doesn't save the file. Does anyone know why? PS: As soon as I get this fixed, I'll post an installer for those who are interested to test the script, ok? Link to comment Share on other sites More sharing options...
quizzy Posted February 28, 2007 Share Posted February 28, 2007 hey rick, what are you trying to do?? opening a file and then save again?? instead of using getMAXSaveFileName, try using saveMaxFile Link to comment Share on other sites More sharing options...
Ricardo Eloy Posted February 28, 2007 Author Share Posted February 28, 2007 That's exactly what I'm trying to do, Quizzy. I want the user to load my example scene and then be prompted to save the file with another name, leaving the original untouched. But... won't using saveMaxFile simply overwrite the original file? Link to comment Share on other sites More sharing options...
nisus Posted March 1, 2007 Share Posted March 1, 2007 Hi Rick, Check the manual on 'how do I batch-process multiple .max files?" There is what you need nisus Link to comment Share on other sites More sharing options...
quizzy Posted March 1, 2007 Share Posted March 1, 2007 in that case use: max file saveas() Link to comment Share on other sites More sharing options...
Ricardo Eloy Posted March 1, 2007 Author Share Posted March 1, 2007 Thanks, Quizzy! That did the trick. Gonna organize everything now and post the installer until monday, so people can try it. Link to comment Share on other sites More sharing options...
Koper Posted March 1, 2007 Share Posted March 1, 2007 cool Rick, glad you got it, so with the script of yours does it go only with the scenes you use or is it possible to easily refer to ones own setup scenes? (maybe without any knowladge of scripting) Link to comment Share on other sites More sharing options...
Ricardo Eloy Posted March 1, 2007 Author Share Posted March 1, 2007 Koper, You can simply replace the preset scenes in the directory created. No scripting needed! It's really, really simple (the script itself is maybe the easiest-simplest thing one could do), but I'll put the instructions along with the script when I release it. Link to comment Share on other sites More sharing options...
Ricardo Eloy Posted March 6, 2007 Author Share Posted March 6, 2007 Ok, here it is: http://www.rebdigital.com.br/reb digital install.exe I was going to post a new thread about it, but before doing that I thought it would be nice to hear from you guys what you think. I repeat, it's a very basic script, designed to help in my office. Maybe it's useful for someone else, who knows...? The file is about 10 MB, and it automatically creates the directories. It also comes with a few HDRI maps (all downloaded from Paul Devebec's website). Quizzy: thanks for your attention on this. Unfortunatelly, I was unable to chat yesterday ( I was literally in the middle of a class, my students warned me you were calling!). Link to comment Share on other sites More sharing options...
quizzy Posted March 7, 2007 Share Posted March 7, 2007 I've modified your post so the url is correct.. edit: installed but cant seem to find the script?? Link to comment Share on other sites More sharing options...
Ricardo Eloy Posted March 7, 2007 Author Share Posted March 7, 2007 Thanks, Quizzy. The script is installed in the default startup directory (c:\Program Files\Autodesk\3ds max 9\Scripts\Startup). I tried to create an option for custom directories in the installation program, but since I'm working with a free version, it simply can't be done.... Oh, a note: the scenes that come with the script are max 9 + VRay 1.5RC3. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now