Is there a way to set a comment window to popup automatically when a hip file is first loaded?
With my tutorials I'd like to have initial comments pop-up when a hip file is loaded.
Automatic popup window
6215 7 1- probbins
- Member
- 1145 posts
- Joined: July 2005
- Offline
- pbowmar
- Member
- 7025 posts
- Joined: July 2005
- Offline
- ben simons
- Member
- 387 posts
- Joined: July 2005
- Offline
Hey Pete,
Okay. How about a message in the “On Loaded” event for a dummy OTL? I just tried this and it worked.
Create a subnet, and “Create Digital Asset” from it. In the Type Properties->Events tab for the event type: “on loaded” enter something like: message “hello Peter R.”
Save and quit and load the hip file. You should see the message.
cheers,
b.
PS. Linux Houdini 8.1.704 Crash: I thought I'd be sneaky, and add an “oprm /obj/popup1” after the message line (to delete the OTL after the message pops up) and Houdini crashed. Changing it to “oprm $arg1” means the message comes up before the crash..
Okay. How about a message in the “On Loaded” event for a dummy OTL? I just tried this and it worked.
Create a subnet, and “Create Digital Asset” from it. In the Type Properties->Events tab for the event type: “on loaded” enter something like: message “hello Peter R.”
Save and quit and load the hip file. You should see the message.
cheers,
b.
PS. Linux Houdini 8.1.704 Crash: I thought I'd be sneaky, and add an “oprm /obj/popup1” after the message line (to delete the OTL after the message pops up) and Houdini crashed. Changing it to “oprm $arg1” means the message comes up before the crash..
''You're always doing this: reducing it to science. Why can't it be real?'' – Jackie Tyler
- probbins
- Member
- 1145 posts
- Joined: July 2005
- Offline
You guys are awesome!! Thanks.
I went with Ben's idea since it provides more space to write stuff.
Since I don't hscript all that much, how do I create new lines in the textport?
I know about “\n” to provide a carriage return in the popup window.
Anyway around the message holding the Houdini launch until the popup window is clear?
I went with Ben's idea since it provides more space to write stuff.
Since I don't hscript all that much, how do I create new lines in the textport?
I know about “\n” to provide a carriage return in the popup window.
Anyway around the message holding the Houdini launch until the popup window is clear?
“gravity is not a force, it is a boundary layer”
“everything is coincident”
“Love; the state of suspended anticipation.”
“everything is coincident”
“Love; the state of suspended anticipation.”
- pbowmar
- Member
- 7025 posts
- Joined: July 2005
- Offline
I think the only way to stop holding up HOudini would be to us “xmessage” via a Unix command rather than using Message… then you could run it in the background with &.
Also, I've used Ben's method with success as well. I have a message in my 456.cmd that asks if I want Autosave turned on (which I almost always do) that works well.
Cheers,
Peter B
Also, I've used Ben's method with success as well. I have a message in my 456.cmd that asks if I want Autosave turned on (which I almost always do) that works well.
Cheers,
Peter B
- probbins
- Member
- 1145 posts
- Joined: July 2005
- Offline
Thanks Peter,
It's a great solution but looks like a bit too primitive for what I'm really after. In this case I've just been writing out loud on an idea for having a preliminary explanation popup when a student loads a file.
Likely what I'm after is to have another application launch that would display a page that is a bit prettier than just plain text.
While it may seem a bit over-complicated I think there is value in having an “introductory” bit of information popup automatically.
It's a great solution but looks like a bit too primitive for what I'm really after. In this case I've just been writing out loud on an idea for having a preliminary explanation popup when a student loads a file.
Likely what I'm after is to have another application launch that would display a page that is a bit prettier than just plain text.
While it may seem a bit over-complicated I think there is value in having an “introductory” bit of information popup automatically.
“gravity is not a force, it is a boundary layer”
“everything is coincident”
“Love; the state of suspended anticipation.”
“everything is coincident”
“Love; the state of suspended anticipation.”
- pbowmar
- Member
- 7025 posts
- Joined: July 2005
- Offline
- probbins
- Member
- 1145 posts
- Joined: July 2005
- Offline
Yes that would work, but I want it specific to a hip file.
So, I've set it up like this, at least for my environment.
For the OnLoad event in the otl.
unix firefox http://www.sidefx.com [sidefx.com] &
I suppose I'll having to figure out how to search for the default browser.
This though means I can launch a hip file and have it open a browser to a specific URL.
You guys were a great help, thanks.
So, I've set it up like this, at least for my environment.
For the OnLoad event in the otl.
unix firefox http://www.sidefx.com [sidefx.com] &
I suppose I'll having to figure out how to search for the default browser.
This though means I can launch a hip file and have it open a browser to a specific URL.
You guys were a great help, thanks.
“gravity is not a force, it is a boundary layer”
“everything is coincident”
“Love; the state of suspended anticipation.”
“everything is coincident”
“Love; the state of suspended anticipation.”
-
- Quick Links