I am trying to reinitialise a [ISubPalette,…] in order to change the on screen size/position of the created subpalette. I quickly found out you can do so by [IClose,…]'ing the palette and reloading the Zplugin. It worked fine and nothing seemed amiss.
But after spending many hours rewriting 6-7 zplugins I discovered the Window ID assigned to each reloaded [ISubpalette,…] and [IButton,…] is set to the last available Window ID for Zplugins.
For example, <b>Zplugin > TVTools > MyZplug</b> has Window ID 13090 when Zbrush starts. One of the functions of my Zplugin requires <b>Zplugin > TVTools > MyZplug</b> to be redefined. I do so by [IClose,...]'ing it, which deletes the ISubpalette and any interface items within it, and then redefine the ISubpalette and the interface items within it by reloading the Zplugin. The only problem now is the Window ID is 13120 (for example). The next time I activate the zplugin the Window ID is 13128, or about that, all depending on how many interface items are to be put in <b>Zplugin > TVTools > MyZplug</b>.
This might not seem a problem but as ZPlugin Window IDs start at around 13000 it is only a matter of time before the assigned Window ID overlaps the other ZBrush interface items. Yes, I did sit and click until I reached around 33000
. At that point the Window IDs of my Zplugin was set to 0 and modeling and drawing on the canvas slowed down dramatically.
So [i]please[/i], does anyone have the patience to give this a shot. I am pretty sure it is impossible to redefine the ISubPalette using ZScripting but perhaps Pixolator could supply a .dll that could redefine a SubPalette's 4 inset values without deleting it? Or perhaps I have missed something?
Edit: Why is this necessary? Well, I will just say that it will help create a whole new form of Zplugins. Zplugins with pop up interfaces that remain active while you draw or sculpt, and can be moved like a regular window. ZPlugins that can “dock” to the bottom of the screen. Zplugins that you can shift between like Zscripts and even ZPlugin interfaces that can collapse or expand while on the canvas with little to no extra coding.
I will post some code once I have commented it sufficiently.


Still a great work experience.