Shake Macro'd Add Script

Report this File

Missing

Views:

10,826

Updated:

Aug 31, 2009

Readership Level:

Advanced

Tags:

Shake Versions:

4.x

Platforms:

mac

Owner:

Language:

English

Part 2 - Setting Up The UI Button

Now that the worst is out of the way, All you have to do now is a simple copy and paste. Open up your favorite script or plain text editor (I prefer Smultron) and type or paste the following text into the editor:
If you look carefully at this script, you will notice the bottom half is the same thing you see at the top of the UI.h files used in all of your standard macros. In fact, that is exactly what file you are making.  Go head and save this file to the usual path you would place any Shake UI scripts:

extern "C"
{
void addScript()
{
nuiAddScript((void*)"/Users/Shared/nreal2/shakescript/basicGlow.shk", 0);
}
}

nuiPushMenu("Tools");
  nuiPushToolBox("User");
    nuiToolBoxItem("@basicGlow",addScript());
  nuiPopToolBox();
nuiPopMenu();



/nreal/include/startup/ui/basicGlowUI.h

The Next Page will give you a better look at what is going on in the basicGlowUI.h file
Tutorial_next_page

Comments

Write a Comment

You must be logged in and have verified your email address to leave a comment. Login or create an account