sibarrick Posted March 28, 2006 Share Posted March 28, 2006 Does anyone know if it is possible to link to an image stored in an otl when writing html help for an asset. Quote Link to comment Share on other sites More sharing options...
michael Posted March 28, 2006 Share Posted March 28, 2006 nope...can't be done....we asked and asked... I think it's simply a limitation of the browser...it has no way to know what an otl is or how to get inside and find an image.... one weird little workaround would be to (on first instantiation of the otl) have a script copy out the images to /tmp/html_images/foo.jpg etc....then have that path in your help...but this is kinda dumb Quote Link to comment Share on other sites More sharing options...
sibarrick Posted March 28, 2006 Author Share Posted March 28, 2006 Damn! Yeah I tried using otcontentsave to dump the file somewhere useful. But the problem with that is the only sensible place to put it is in the users HOME directory. Trouble with that is that I can't find a way to pass the $HOME variable to the html either. Unless you have any ideas about that, so I'm stumped.... rats. Not only that, but I've run into a similar problem trying to make an installer for windows HDK stuff. Again I can use otcontentsave, but there is no way to make the required directories. If I do it outside of Houdini then windows doesn't know anything about the $HOME variable... aaaarrrrrgh!!! So I'm left with writing a text file with a list of places to copy stuff too, how naff is that. Anyone got any ideas about this.....??? Quote Link to comment Share on other sites More sharing options...
michael Posted March 28, 2006 Share Posted March 28, 2006 you could expand $HOME then use that....? Quote Link to comment Share on other sites More sharing options...
Mcronin Posted March 28, 2006 Share Posted March 28, 2006 you could expand $HOME then use that....? 26087[/snapback] Possibly... you know I could have sworn I saw an HDA Mario made that had an axyz logo in the help card, Maybe he'll pop in and explain if he did indeed figure a way to do it. I think the asset might've been the subsurface scattering thing. Check the exchange. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted March 29, 2006 Author Share Posted March 29, 2006 Possibly... you know I could have sworn I saw an HDA Mario made that had an axyz logo in the help card, Maybe he'll pop in and explain if he did indeed figure a way to do it. I think the asset might've been the subsurface scattering thing. Check the exchange. 26089[/snapback] I' ll have a poke around, don't hear much for Mario these days, I think he must be in family mode. I couldn't think how to expand $HOME in html??? It's doesn't know anything about houdini variables as far as I can tell. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted March 29, 2006 Author Share Posted March 29, 2006 It looks like he just uses standard html in the help. I did have another thought though, again it's rather hacky, but I could use an external web address with the image in..... not so nice if the website goes down though. Quote Link to comment Share on other sites More sharing options...
michael Posted March 29, 2006 Share Posted March 29, 2006 I meant expand $HOME before it goes to html.... oh btw, remember that the houdini browser DOES support the <blink> tag... Quote Link to comment Share on other sites More sharing options...
sibarrick Posted March 29, 2006 Author Share Posted March 29, 2006 I meant expand $HOME before it goes to html....oh btw, remember that the houdini browser DOES support the <blink> tag... 26113[/snapback] Yeah but how do you expand a variable before it goes to the html, you'd have to change the html every time the variable changed confused Can you explain further Quote Link to comment Share on other sites More sharing options...
michael Posted March 29, 2006 Share Posted March 29, 2006 oh sorry...for whatever reason I was thinking that you were writing the html file itself with a script...rather than having the html file in the otl and copying it to disc...not sure why I thought that...lots going on right now I just realized that much of this is unnessesary... if your image paths are relative you don't need to know where you are... eg: your otl writes 1 html file to $HOME/houdini/myOTL/docs/ and the images to $HOME/houdini/myOTL/docs/images/ so your html code could just look like this: <img src="images/myPic_01.jpg"> Quote Link to comment Share on other sites More sharing options...
Mario Marengo Posted March 29, 2006 Share Posted March 29, 2006 I' ll have a poke around, don't hear much for Mario these days, I think he must be in family mode. 26104[/snapback] Heh.. I wish. No, I'm in neck-deep-in-work mode -- haven't been visiting the sites much There was no magic in those otl's. it's all html stuff... but I must have posted a request for this at least twice at the SESI forum (back in H7 I think) and all I got back was crickets, so yeah, it would be nice if it were possible... could there be a Java solution somewhere in there? Cheers... back to the grind... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.