ZBrushCentral

IDialogs, DLL's, Startup questions

Just a few questions to put on the list.

I haven’t been able to figure out how the IDialog Function works.

According to the Zscriptcommands.txt the example shows

[IDialog,ZScript:TextureMaster] Creates a “TextureMaster” subpalette within the Zscript Palette.

I have used the Subpalette function with no problems and I think IDialog should make a pull down palette that I can put subpalettes in. But I haven’t been able to get this one to work.

I have also tried to create a DLL that can be called with the [FileExecute] function, any help here would be appreciated. I used MicroSoft C++ 4.2 and created a dll that I can call with Visual Basic with no problem but not with a Zscript.

How can you get Zbrush 2.0 to automatically load a Zscript at startup? I have put a test.zsc script in my Startup Folder and nothing happens.

  1. I can put Zscript buttons in the main palettes, ZPlugin, Zscripts, Tools etc… but how do you put a button in the left panel like Projection Master has?

Thanks in advance!

Zbrush 2.0 is groundbreaking, you guys are really really smart fellers! Thanks for the goodies

To make a script initialize as part of Z2’s startup, it must be converted into a Zplugin.

As you’ve seen, ZScripts are much more powerful in Z2. The topic is complex enough that we want to “let the dust settle” a bit after the actual release before we start going into too much detail about ZScripting and Zplugins. Never fear, though; that detail will be forthcoming!

Regarding your last question, the Projection Master button is really located in the Zplugins>Projection Master menu. Any button that is created by a Zplugin can be placed on the Shelf – which is what was done with the PM button.

Hi Digit,
i have no doubt you are writing DLL… :slight_smile:
I’m trying to do the same thing with Delphi 7 :wink:
I had little success… and then i’ll wait for new information…i have so much to see in the new Z2.

cameyo

Digits: I’ve only been able to succesfully call a .dll when compiled with CodeWarrior. I tried Visual Basic but that crashed zbrush everytime.

You might try passing both a string and a number as parameters eventhough your .dll does not need it. I made the CodeWarrior compiled .dll crash by not passing both a string and a number.

Looking forward to the zscript info.