Hey,
I was just wondering how to put a “Curve Dialogue” in my menu. It seems to me that Zbrush Curve Options are treated a lot different from other menu items (considering that you can’t even move them around with STRG in customUI). So do I have to hardcode this dialogue into my menu ??
Are you trying to load curve files (.zcv) into curve interface items? Or edit the curve itself ?
The Curve interface items behave differently from other interface items but I have no idea why. For example, Brush > Tablet Pressure > Size does not exist until one of the tablet pressure curves has been opened. It can’t be to conserve memory as once one of the tablet pressure curves is activated the tablet pressure interface items exist for all brushes, including undo/redo for each curve (5 tablet pressure curves * 1 undo each * 97 brushes uses about 4 MB).
But I digress. The curve editor itself would be a bit tricky to code but the main controls and modifiers are easy enough to recreate. You just need to perform some conditional tests before, for example, changing the focal shift of the curve.
It would help to know specifically what you are trying to create.
Nothing that complicated no
All I want to do is de-clutter the Zbrush Interface and create streamlined interfaces for texturing, sculpting etc. Just reassemble existing Menu items into new ones. It’s just the whole curve edit thing that I can’t really access, so I figures I would need to edit the script itself to resinsert the AlphaCurve (as an example) into the new menu.
I am afraid the curve edit interface is the only interface item that cannot be repositioned, AFAIK. But just because an item can be repositioned does not mean it will appear in subsequent zbrush sessions.
If you find a custom UI interface item has disappeared the next time you start ZBrush it is because it does not exist in the interface at all times (or you forgot to save the UI :)). For example, the ZSphere > ZSketch buttons can be repositioned but as they only exist in the ZSphere tool they will not appear after restarting ZBrush. Quite annoying actually, but I am sure there is a good reason.
Maybe to force people to use shift+a
That could be it Disco Stu
I know the current setup makes it possible to detect which type of tool is currently selected, i.e if [IExists, Tool:ZSketch:ZSketch Edit] then it is a zsphere tool. But this could just as easily be done using the underused interface item flags. The bitmask flag of an interface item should easily be able to tell if it is a Polymesh, Parametric, ZSphere or 2.5D brush.
Reviving this old thread.
I am adapting my custom configuration to incorporate some of the new stuff from Z4R2. And I am finding myself again in the position of having to try to move a Curve Dialog (in my case the “Curve Adjustement” for Stroke:Curves) into a separate Submenu. Has anyone by now figured out how to do this ? I can’t see the CurveMenu being recreated each time. It must be static - ergo I should be able to move it somewhere.
As TVeyes says above, the Curve edit interface can’t be moved (you can move the edit buttons but not the curve itself). This remains the case in 4R2, I’m afraid.
EDIT: what you can do, and might be useful if you need to edit the curve on the fly, is give it a hotkey. It will then pop-up at the cursor. However, the buttons don’t appear with it and you need to make sure the curve is already open in the Stroke palette.
Haha ! Never knew you could give a CurveMenu a separate Hotkey. That helps a lot ! Thanks.
Jens