Jump to content

Explanatory texts (it's probably really basic...)


Ricardo Eloy
 Share

Recommended Posts

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:

attachment.php?attachmentid=18858&stc=1&d=1172166666

 

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

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

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

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

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...