View Full Version : Can anyone compile this plugin for 4.5?
Ive recently upgraded to 4.5 unfortunately one of my favorite plugins for 4.0 is unavailble for this version.
The plugin is ieformaya which lets you dock Internet Explorer into a viewpane. Its absolutely brilliant for following tutorials and viewing anything that can be embbeded into IE.
Luckily the source code is available, so if someone can re-compile it, that would be absolutely great.
http://www.secretlevel.com/
under downloads section
|
|
lostpencil
03-07-2003, 09:30 PM
Here you go:
http://www.lostpencil.com/temp/ieForMaya_45.zip
Thanks Paul, thats what i love about these forums everyone is willing to help out.
If anyone hasnt tried the above plugin i would really recommend it, it has saved me countless amout of flicking between apps.
lostpencil
03-07-2003, 09:45 PM
Yer welcome! By the way, if people want to use the plugin make sure you download the original files for the plugin as they contain the instructions on how to use it (my file just has the recompiled files and the mel scipt).
By the way, it is very cool.
Sammy
03-07-2003, 11:33 PM
doesn't work for me ... followed the instructions - .mll goes into the plug-ins folder - the .dll into the bin and the script into the my documents/maya/scripts folder ... the same ol' routine.
But I get an error when trying to init the plugin - looking for a .dll of a different name ? MFC70.dll ?
I feel brain dead today - must be a cold comin' on ...
-Sammy
rhibit@lilypad.ca
-+-
lostpencil
03-07-2003, 11:37 PM
Hey Sammy, what is the error exactly?
Tierackk
03-08-2003, 12:02 AM
sounds like a great plug-in.. i get the error too:surprised
says : Errpr: The specified module cannot be found
:shrug:
lostpencil
03-08-2003, 12:23 AM
Thanks Tierackk... maybe I'm linking it with a library it doesn't need... or maybe it needs it... let me do some investigating. Hey Rebo, did you get it to work out?
lostpencil
03-08-2003, 12:32 AM
Ok, try this version out and let me know if it's still failing:
http://www.lostpencil.com/temp/ieForMaya_45.zip
Hi lost,
If it still blows, it needs compiled with an earlier version of VC++, or you need a full blown install. I popped it up in depends and you're still linking MFC7.
hth
Sammy
03-08-2003, 01:04 AM
lostpencil,
... a different error this time - it won't permit me to enable the checkmark on 'load' ... the script editor gives me:
// Error: The specified module could not be found.
//
// Error: No plug-ins loaded - "The specified module could not be found.
". //
updatePluginWin();
... thanks for all the time you're putting into this lostpencil, you deserve a beer for this ...
:beer: ,
Sammy
rhibit@lilypad.ca
-+-
lostpencil
03-08-2003, 01:10 AM
Thanks sbp... there are two modules to the plugin (the plugin and a MFC dll...) so it looks like the MFC dll has further dependencies and needs the MFC7 dll - which, I presume, some people will have and others not (more likely not). So the solution is to include that dll (whatever it may be). Right? What is 'depends'... sounds like a useful tool. Anyway, I'll check it out some more. I haven't coded for over 10 years... I feel like a kid again!
Hey Sammy, thanks for that error message. I appreciate it! And you are welcome! It gives me a chance to play around with my new VC++ and the Maya API.
lostpencil
03-08-2003, 01:26 AM
I found 'Depends'... to my surprise it wasn't an under garment! Very cool tool.
Anyway, it looks like the plugin needs mfc70.dll because that's what I compiled it with.... duh. If someone could give it a go, here is a link to a zipped version of it:
http://www.lostpencil.com/temp/mfc70.zip
It needs to be unzipped to your C:\WINNT\system32 or equivalent folder. If someone has a chance to test it out, please let me know. When I temporarily removed it from my folder I received the same kind of error everyone else is encountering.
It works fine for me tho i just copied over the updated .mll in your zip and used the .dll from the 4.0 version. Try that it should work. Infact I am typing this inside a maya viewpane :).:bounce:
Jozvex
03-08-2003, 03:30 AM
Wow I can't believe I never used this for Maya 4!
For those that still get the .dll error, you can download the file here and extract it to your c:\winnt\system32 folder and it'll fix it.
http://www.huihuang.bizland.com/files/mfc70.zip
That's what I did.
I don't suppose someone could kindly write a handy script to load the IE for Maya panel into the current viewport could they? Please?
I'm creating a shelf button at the moment for typing in addresses.
And it's really cool because you can type:
ie -n "c:/";
and you can get a windows explorer window in there too! You just need to make sure you put the opposite kind of slash to normal windows file structure.
lostpencil
03-08-2003, 03:44 AM
Hey Jozvex! Glad that works! That file looks suspiciously like the one I just posted.. he he...
Anyway, glad we got that ironed out. Now get back to playing with Maya and IE... or what have you. :)
FreeQ
03-08-2003, 03:47 AM
Thank you very much guys. It's cool.
:]
Jozvex
03-08-2003, 05:09 AM
Hi again, here's a script you can put into a shelf button. It creates a prompt box thing for entering in website addresses:
//IE for Maya address entering script
//
if (`window -exists websiteBox` == 1)
deleteUI -window websiteBox;
window -mnb 0 -mxb 0 -title "Enter a website address:" -resizeToFitChildren 1 websiteBox;
rowLayout -numberOfColumns 2 -cw2 200 40;
string $goTo = `textField -width 180 -ec "string $webSite = `textField -q -text typedAddress`" typedAddress`;
button -label "Go" -command "ie -n $webSite";
showWindow websiteBox;
You click the shelf button, type the address in the box, press the keypad enter key (I hate that by the way, I mean why couldn't they just make it either enter key?) and then press the "Go" button.
Oh and I just found what seems to be a limitation of this IE panel. I tried posting this message from within Maya but I couldn't press enter to go to a new line!!!
ok, i made an icon for this script. Just put it where you want and transform it into .bmp to get inside the shelf editor, and after that load it!
too easy huh! :wavey:
dmcgrath
03-09-2003, 01:20 AM
Yeah that looks like it works fine Jozvex. The other limitation I noticed with the ie for Maya was the lack of Javascript support. Too bad, but it's cool anyway. BTW, cant you just code the execute into your script? It seems like you would be able to get rid of the keypad enter.
Jozvex
03-09-2003, 02:04 AM
Originally posted by dmcgrath
Yeah that looks like it works fine Jozvex.
Glad to be of service! Every bit of scripting is good practise.
Originally posted by dmcgrath
BTW, cant you just code the execute into your script? It seems like you would be able to get rid of the keypad enter.
I did try to do that, but I couldn't get the data from the textField into the variable any other way.
The three textField flags you can use are:
-cc which executes when the text is changed.
-ec for when keypad enter is pressed.
-rfc executes when the field recieves focus.
So they're the only ways I know to get data out of the textField. Any other way is too advanced for me right now. I love to learn more though!
And thanks for the icon Bugo!
was nothing, just asking if that someone can build an adress bar above the panel setup of IE, lol! It will be more easy :) kidding!
CaptainSam
03-15-2003, 08:25 PM
>I don't suppose someone could kindly write a handy script to l
?oad the IE for Maya panel into the current viewport could they?
>Please?
Ive finally figured out how scriptedPanels work, so I knocked this together in 5 minutes for ya
global proc loadIE()
{
string $explorerPanel[] = `getPanel -sty InternetExplorer`;
if (`size $explorerPanel`==0)
{makeNewPanel "scriptedPanel" "InternetExplorer" `getPanel -withFocus`;}
else {scriptedPanel -e -rp `getPanel -withFocus` InternetExplorer1;}
}
The script will load IE in the panel that currently has focus. The command to execute the script is loadIE
Jozvex
03-15-2003, 09:37 PM
Great! Thanks CaptainSam!
Scripted panels eh? I'll have to check that out, sounds useful.
CaptainSam
03-15-2003, 10:16 PM
Theyre kinda difficult to figure out at first, but its not impossible. The great thing about them of course is that you can put your GUI inside Maya's panels.
The documentation in the manual is horrible, but theres a decent tutorial on Bryan Ewert's (http://www.ewertb.com) site
CaptainSam
03-15-2003, 10:32 PM
I worked a little bit more on the script, so now it creates an adress bar in the ie panel. Just type the adress in it like in a regular browser. The adress bar has a right click menu for favorites. You can insert your own by hacking the script a little bit.
global proc loadIE()
{
string $explorerPanel[] = `getPanel -sty InternetExplorer`;
if (`size $explorerPanel`==0)
{makeNewPanel "scriptedPanel" "InternetExplorer" `getPanel -withFocus`;}
else if (`scriptedPanel -q -control InternetExplorer1`!= "InternetExplorer1Window|TearOffPane|InternetExplorer1")
{scriptedPanel -e -rp `getPanel -withFocus` InternetExplorer1;}
createAdressBar;
}
global proc ieEnterAdress()
{ie -n `textField -q -tx ieAdressBar`;}
global proc loadPage(string $url)
{
ie -n $url;
textField -e -tx $url ieAdressBar;
}
global proc createAdressBar()
{
if (`textField -q -ex ieAdressBar`==0)
{
setParent "InternetExplorer1";
textField -changeCommand ieEnterAdress ieAdressBar;
popupMenu -p ieAdressBar iePopUp;
// Change the paths below to match the location of your Maya documentation folder
menuItem -p iePopUp -l "Help" -c "loadPage
\"C:\\\\Program Files\\\\AliasWavefront\\\\Maya4.5\\\\docs\\\\en_US\\\\html\\\\index.html\"";
menuItem -p iePopUp -l "Mel Help" -c "loadPage
\"C:\\\\Program Files\\\\AliasWavefront\\\\Maya4.5\\\\docs\\\\en_US\\\\html\\\\Commands\\\\index.html\"";
menuItem -p iePopUp -l "Nodes & Attrs Help" -c ("loadPage
\"C:\\\\Program Files\\\\AliasWavefront\\\\Maya4.5\\\\docs\\\\en_US\\\\html" +
"\\\\Nodes\\\\Index\\\\indexAlpha.html\"");
// FAVORITES POPUP MENU
// Insert favorites here. Make sure you follow the syntax properly
menuItem -d 1;
menuItem -p iePopUp -l "Alias|Wavefront" -c "loadPage \"http://www.aliaswavefront.com\"";
menuItem -p iePopUp -l "CgTalk" -c "loadPage \"http://www.cgtalk.com\"";
menuItem -p iePopUp -l "HighEnd3D" -c "loadPage \"http://www.highend3d.com\"";
menuItem -d 1;
menuItem -p iePopUp -l "Secret Level" -c "loadPage \"http://www.secretlevel.com\"";
menuItem -p iePopUp -l "AnimagicNet" -c "loadPage \"http://www.animagicnet.no/eng_index.html\"";
menuItem -p iePopUp -l "The JointFactory" -c "loadPage \"http://www.animagicnet.no/maya/jointfactory\"";
menuItem -p iePopUp -l "Free Jimmy" -c "loadPage \"http://www.freejimmy.com\"";
string $children[] = `formLayout -q -ca InternetExplorer1`;
formLayout -e
-attachForm $children[1] left 1
-attachForm $children[1] right 1
-attachControl $children[0] top 1 $children[1]
InternetExplorer1;
}
}
Jozvex
03-16-2003, 12:50 AM
Ok, now you're just getting too good!
Hmm, it's a shame this thread has such an uninviting name, people might be missing out....
But who cares,
CaptainSam
03-16-2003, 01:57 AM
I made a quick update on the script above. Just a stupid bug that would stop the script from working now and then
Great thanks CaptainSam:drool:
Thx again CaptaimSam, its awesome what you have made!
Jozvex
03-16-2003, 05:43 AM
Hmmm, sometimes when I use the IE panel I get 'trapped' in one viewport. It'll just toggle between IE and the view I replaced it with, instead of switching back to my 4 view layout.
Any way I can fix that?
darkdeathdreame
03-16-2003, 09:15 AM
Jozvex : you can tearoff the panel then everything will be ok. Except that you will lose the url bar that captainSam did.
CaptainSam : Pls help!! I don't see the favourites bar/popup you created... =~~ although I do see the address bar. And as mentioned above, is it possible to fix it such that tearing off the panel would still keep that wonderful address bar u created?
U guys are really great :bounce: :applause:
wrend
03-16-2003, 02:59 PM
nice one!
cheers.
Heyy guys a newbie question, how do I install this script, just if someone could tell me what I have to do, thanks in advance ....
:thumbsup:
lostpencil
03-16-2003, 03:39 PM
Hi SePu,
Check out:
http://www.secretlevel.com/main.php?page_type=item_pages&page=current_downloads
It has a zip file for the 4.0 plugin which contains the instructions on how to install and use the plugin. So when you install it (according to their instructions) just use the 4.5 plugin instead of their versions compiled for 4.0. You may also have to install the MFC DLL mentioned in this thread as well.
CaptainSam
03-16-2003, 10:00 PM
>CaptainSam : Pls help!! I don't see the favourites bar/popup
>you created... =~~ although I do see the address bar. And as
>entioned above, is it possible to fix it such that tearing off the
>panel would still keep that wonderful address bar u created?
Hm, I dont see any reason why you shouldnt get the favorites popup. Make sure youre right clicking in the adress bar
Im gonna look at the tearOff thing when I have the time
A tip I got on the Maya mailing list: If you want to make links call a Mel command, you can put something like this in the html code:
<a href="mel:select -r sphere">. So now we can all make our Softimage XSI synoptic views in Maya
CaptainSam
03-17-2003, 02:30 AM
Ive updated the script posted earlier in this thread, so go back a few pages for the latest version.
I havent figured out a way to automatically load the adress bar when you tear off the panel, but Ive modified the scipt so that the loadIE command now works with torn off panels as well. Just call the command over again when youve torn off the panel
deathX
03-17-2003, 09:43 PM
absolutly amazing plug!!!! thnkz for compiling it for 4.5:thumbsup:
Hi.
I might be coming to the thread a bit late but can someone re-post the ieformaya 4.5 plugin, none of the previous links are still valid.
I've got the Secret Level download for 3.0, 4.0 and 5.0 but I'm at a company running 4.5 so I need to install the 4.5 compile, thanks...
lostpencil
05-26-2004, 04:36 PM
Hi GMRK,
This link is now active again:
http://www.lostpencil.com/temp/ieForMaya_45.zip
Hope it helps.
Thanks a lot for the re-posting Paul.
Using the opposite kind of slash / in addresses threw me for a bit (I was trying to navigate to my Maya help files on my local C: drive) but it works fine.
Going to try the other scripts to add address bar etc. now...
Cheers!
CGTalk Moderation
01-14-2006, 02:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.