PDA

View Full Version : Useful small ZScripts and Macros for ZBrush 4 & 4R3



marcus_civis
09-13-10, 07:53 AM
This thread is intended as repository for useful small zscripts, plugins and macros. Sometimes there's a simple zscript solution to a problem or need that may not warrant a major plugin but will none-the-less be useful to users. If you have written such a zscript, plugin or macro please share it here so that users can easily find it and benefit. Thanks! :)

Note: some of the plugins or macros posted here may not work correctly with ZBrush 4R3. Those that have been updated for 4R2 will say so.

**************************************************

Index
__________________________________________________

Large Menus (this post - see below)

Proxy buttons for Toggle Symmetry, x, y, z, r and Enable Customize (http://www.zbrushcentral.com/showthread.php?p=734663#post734663)

Lasso - Paint mask/selection toggle (http://www.zbrushcentral.com/showthread.php?p=734933#post734933)

Smaller UI configuration (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4.0&p=734962&viewfull=1#post734962)

Multi OBJ importer (http://www.zbrushcentral.com/showthread.php?p=735253#post735253)

Numpad (http://www.zbrushcentral.com/showthread.php?p=743193#post743193)

ZSphere Mesh Insert (http://www.zbrushcentral.com/showthread.php?p=743228#post743228)

Beta Turntable Plus for ZBrush 4 & 4R3 (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4.0&p=759928&viewfull=1#post759928)

Flip UV's vertically on import and export (http://www.zbrushcentral.com/showthread.php?p=770437#post770437)

Y Axis Rotation - in increments (http://www.zbrushcentral.com/showthread.php?p=786302#post786302)

Init ZBrush and load Startup Document (http://www.zbrushcentral.com/showthread.php?p=789685#post789685)

All SubTools macro (http://www.zbrushcentral.com/showpost.php?p=798045&postcount=30)

Cubics (http://www.zbrushcentral.com/showthread.php?p=806702#post806702)

Materials to Texture Map (updated May 29 2012) (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4-amp-4R3&p=838764&viewfull=1#post838764)

Seamless Textures (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4-amp-4R2&p=848052&viewfull=1#post848052)

Axis Rotate (http://www.zbrushcentral.com/showpost.php?p=854571&postcount=40)

Favorite Brush toggle (http://www.zbrushcentral.com/showpost.php?p=871353&postcount=52)

Scale Offset Copy/Paste (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4.0&p=898263&viewfull=1#post898263)

Fit Mesh (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4.0&p=898758&viewfull=1#post898758)

Export All BPR passes (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4.0&p=907347&viewfull=1#post907347)

Document MaxResize (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4-amp-4R3&p=940005&viewfull=1#post940005)

Duplicate Element (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4-amp-4R3&p=941147&viewfull=1#post941147)

Tool Position 4.2 (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4-amp-4R3&p=941522&viewfull=1#post941522)

Spinner (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4-amp-4R3&p=960235&viewfull=1#post960235)

Refresh Texture (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4-amp-4R3&p=960631&viewfull=1#post960631)

Custom Symmetry Buttons (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4-amp-4R3&p=977372&viewfull=1#post977372)

**************************************************

Large Menus

This is for those people that find the ZBrush palette titles a little small. It's a set of buttons that can be added to a custom interface to give access to the palettes. The images can be edited to suit the user's requirements.

Unzip and put the Large_Menus.zsc file and MenusImages folder in the ZStartup/ZPlugs folder. Restart ZBrush and there will be a Large Menus menu in the ZPlugin palette. When creating a custom interface, the buttons can be Ctrl+Alt+dragged to where you want.

Note that when a palette is open in the right or left tray the 'large menu' button will do nothing.

Antlab
09-13-10, 08:57 AM
Hi Marcus.
As I already said in another thread, thank you very much, for me this script is really useful.:tu:
One simple question: Is it possible to modify the script to obtain the same behaviour of the original menus, that is that when single clicking on a palette, the others open simply hovering the mouse over them?

Grazie, ciao

marcus_civis
09-13-10, 09:11 AM
One simple question: Is it possible to modify the script to obtain the same behaviour of the original menus, that is that when single clicking on a palette, the others open simply hovering the mouse over them?


Unfortunately not - this is the best that can be done with zscript.

Antlab
09-13-10, 09:16 AM
Ok, no problem, the script is really useful also in this way.
Thanks again.

Ciao

Svengali
09-13-10, 11:00 AM
proxy buttons.jpg

Here are six, miniaturized "proxy" buttons that can be used in place of their menu counterparts to save space when inserted on your customized interface (these smaller buttons are especially useful for Tablet PC users.)

1. sym = toggle symmetry on/off
2. x = toggle x symmetry
3. y = toggle y symmetry
4. z = toggle z symmetry
5. r = toggle radial symmetry
6. UI-ed = toggle Enable Customize button and off.

For those who are constantly tweaking their interface, the handy UI-ed button can be permanently placed on the interface where the HUGE Enable Customize button would not fit.

Unzip ZB4 proxy buttons.zsc into the ZStartup/Zplugs folder. Then, look for the buttons in the ZPlulgin/Svengali subfolder next time you start ZBrush.

ZB4 proxy buttons.txt file included.

Sven

Antlab
09-13-10, 11:21 AM
Hi Svengali,

thanks for the script, it can be handy, considering that, if I understood well, there is not possibility in ZB to associate a key to y, z and radial simmetry. One question: I put the buttons in my Ui, but they don't change appearence when activated (there is no visual difference between on and off) . Is it normal?

Ciao

Svengali
09-13-10, 04:48 PM
@ Antlab,

That's correct, the x,y,z,r proxy buttons don't change or toggle appearance.

What indicates whether they are active? --- The single, dual or multiple red-cursor dots over the model.

Sven

Bonecradle
09-13-10, 06:23 PM
I'm afraid I don't zscript so I hope it's not out of order to put a suggestion/request here.

I am constantly switching my selection and masking brushes (mainly between marquee/pen and lasso brushes). Now I could put buttons for these brushes in the UI to make selection easier, but would it be possible to have just one single button - a 'lasso' button - that sets both the lasso mask and lasso selection brushes as active when on, and the marquee selection and pen masking brushes as active when off? I think this would cut down on the more tedious brush selection changes and one button would take up less real estate.

marcus_civis
09-14-10, 12:11 AM
... would it be possible to have just one single button - a 'lasso' button - that sets both the lasso mask and lasso selection brushes as active when on, and the marquee selection and pen masking brushes as active when off? I think this would cut down on the more tedious brush selection changes and one button would take up less real estate.

I had actually done that already (which is why I thought it would be good to start this repository!):

The little plugin in the zip will give you the old Lasso button behaviour. Unzip and put the file in you ZStartup/ZPlugs. Restart ZBrush and you will have a Marcus Tools menu in the ZPlugin palette. In that will be a switch named Lasso.

The switch will toggle the Lasso and Paint mask/selection brushes. With the Paint mask selected you will be able to drag a rectangle from outside the model, just as in 3.5. You can assign a hotkey to the switch if you wish.

The first time you use the switch in a session you may have to press it twice, depending on your setup. You may also get the message about selecting the mask option, which you can get rid of for the rest of the session.

Antlab
09-14-10, 03:39 AM
That's correct, the x,y,z,r proxy buttons don't change or toggle appearance.What indicates whether they are active? --- The single, dual or multiple red-cursor dots over the model.Hi Sven,

thanks for the confirmation. Your script is nice, allowing a more fluid action during sculpting, without the need to continuosly open the Transform Menu.

Ciao

marcus_civis
09-14-10, 06:02 AM
On smaller displays some buttons in the standard UI are off the screen. (They are still available in the Transform palette but obviously that's not as convenient.)

This configuration will solve the issue:

1. Unzip the file to your ZBrush 4.0\ZStartup folder.
2. Start ZBrush and press Preferences>Congig>Load UI. Select the SmallerUI.cfg file from the ZBrush 4.0\ZStartup folder.

The adjusted UI will be loaded. Buttons that are on the lower right column in the default UI have been moved to the top right-hand side. You may need to close the right tray (with the Tool palette in it) in order for them to appear - to do this click on the divider.

If you are happy with the new layout save it as your custom interface by pressing Shift+Ctrl+i.

>> Download here << (http://www.zbrushcentral.com/attachment.php?attachmentid=211382)

chan1234
09-14-10, 03:35 PM
Hey all, this tool was developed as a excercise in learning how to marry C code and ZScript. The tool allows you to import multiple obj files at once instead of one at a time. It also allows you to optionally select on of the objs to import as the 'main tool' and the other objs as subtools of that one. there's also an option for recursing subdirectories when searching for valid obj files.

I've heard tell that Subtool Master already does all this so maybe this tool is utterly useless....though it was still a good learning platform for me :)

also, there IS a dll here so i'm not sure that this is in the right thread. apologies if not. Just wanted to share this plugin and ZScript with the community out there in case it was of some use.

attached is an image of the UI with some notes as well as the installer in the zip file.

just run the installer and install it to the ZStartup\Macros folder and there should be a subpalette called Robo Tools under the Tool palette.

lastly, HUGE thanks to Marcus_civis who's been tremendously helpful and patient with my never ending questions regarding ZScripting and calling through to a dll!!

enjoy!

marcus_civis
09-14-10, 11:14 PM
Chan,

Great! Thanks for sharing. :)

Note: I think you should include the RoboToolPalette.zsc in the install.

At the moment users need to load the RoboToolPalette.txt through the ZScript:Load button the first time so that the code is compiled, after which the plugin will be automatically loaded each session.


Cheers,

Cral
09-15-10, 05:16 AM
I had actually done that already (which is why I thought it would be good to start this repository!):

The little plugin in the zip will give you the old Lasso button behaviour. Unzip and put the file in you ZStartup/ZPlugs. Restart ZBrush and you will have a Marcus Tools menu in the ZPlugin palette. In that will be a switch named Lasso.

The switch will toggle the Lasso and Paint mask/selection brushes. With the Paint mask selected you will be able to drag a rectangle from outside the model, just as in 3.5. You can assign a hotkey to the switch if you wish.

The first time you use the switch in a session you may have to press it twice, depending on your setup. You may also get the message about selecting the mask option, which you can get rid of for the rest of the session.

Is it possible to combine the lasso and paint mask/selection like in 3.5 when lasso was active? I don't use the rectangular mask/selection :(

chan1234
09-15-10, 07:36 AM
Hey Marcus, I didn't have any trouble with getting the button to show up with just the .txt files in the ZStartup\Macros folder. i deleted the .zsc files and restarted ZB and the button still showed up and functioned as expected. having said that, here's a new installer that installs the .zsc files for both RoboToolPalette.txt and MOI.txt.
thanks!

marcus_civis
09-20-10, 04:48 AM
Is it possible to combine the lasso and paint mask/selection like in 3.5 when lasso was active? I don't use the rectangular mask/selection :(

That's how it works.

marcus_civis
10-01-10, 03:15 AM
This little plugin is for entering slider values without using the keyboard. It's a ZBrush 4 version of one originally posted in this thread (http://www.zbrushcentral.com/showthread.php?t=54421).

Numpad.jpg

Installation
Unzip the file and put the Numpad4.zsc in your ZStartup/ZPlugs folder. Restart ZBrush and there will be a new Numpad menu in the ZPlugin palette, with a single Numpad button.

You need to assign a hotkey to the Numpad button. Ctrl+Alt+click on the button and then press the hotkey you want to use. Store the hotkey by pressing Preferences>Hotkeys>Store.

Instructions
Hold your cursor over a slider and press the hotkey. The interface will appear and you can enter a value by pressing the buttons. Press the = button (or Enter on the keyboard) to enter the value into the slider.

marcus_civis
10-06-10, 06:40 AM
The mannequins are made by inserting polymeshes into a ZSphere structure. You can also use this technique to create chains and similar structures which can be edited and posed (as Joseph Drust shows here (http://www.pixologic.com/docs/index.php/Joseph_Drust#Insert_Local_Mesh.2C_Insert_Connector _Mesh)).

This plugin makes inserting the meshes easy, with two meshes being used, one for the local mesh that replaces the ZSpheres and one for the connecting spheres. (Individual meshes can be replaced by hand afterwards if you wish.)

Unzip the file and put the ZSphereMeshInsert.zsc file and ZSphereMeshInsertData folder in the ZStartup/ZPlugs. After restarting ZBrush there will be an Add Mesh to ZSphere button in the Zplugin>Marcus Tools menu.

With your ZSphere selected, press the button. You will be asked to select two meshes from disk, one for the local mesh and one for the connector mesh. The plugin will then create a new structure with the meshes inserted.

The zip includes two chain link ZTLs which can be used to make a chain.

bLawless
10-06-10, 08:22 AM
In the tutorial mentioned, one can choose to do either 'local' or 'connector' but the plugin forces the use of both at the same time.

Is there a way I can use only 'local'?
Basically when I follow the plugin messages, my chain link sizes are not consistent even though my zspheres are all the the same size.

marcus_civis
10-06-10, 11:19 AM
Brandon,

I've updated the plugin so that if you only choose a local or connector mesh then the operation will go ahead with just that - simply cancel the open file dialog for the one you want to omit.

bLawless
10-06-10, 11:33 AM
Marcus,
When I hit preview, two chains are created. One is a bit offset from the other.

Another program (Modo) has this: you create the chain links, then you duplicate along a curve. Maya and other programs have this as well. Don't worry to much if this is proving difficult.

I mean - chains are awesome and I think many people would love them. If you can create a way that works, great. The tutorial on the Zbrush wiki has opened a can of worms. After seeing it, trying it, and after your work on this plugin to make that tutorial actually 'work', after all of this, I'm not sure the method is better/faster than using Modo or other programs.
Thanks for the effort though.

-B

marcus_civis
12-07-10, 11:13 AM
This is a beta version of Turntable Plus for ZBrush 4 which I am posting here because some people have found it useful. This will export an image sequence for BPR renders.

For installation, follow the general instructions here:
http://docs.pixologic.com/user-guide/zbrush-plugins/#PluginInstallation

Note that this is simply a first pass and there will no doubt be issues and some things may not work as expected. It does not work with the Timeline.

Instructions:
The plugin works in the same way as before except for some new switches for BPR.
* Turn on the Turntable Plus>Best Preview Render switch to use BPR
* You then need to set the little switches to export the different maps
* After pressing the Render Movie button you'll get the options dialog. Note that if you are using BPR then the HDGeometry, Image, Alpha & Depth options will be ignored - you need to set these options either through the Img, Dep & Msk switches in the Turntable Plus menu or in the case of HDGeometry, the option in the Render palette.
* After the options dialog you'll be asked to save the first file for each of the different image exports. Note that what Turntable Plus calls an 'Alpha' is the BPR 'Mask'.
* For other BPR Render options, set the options in the Render palette.

Download ZBrush 4R3 version here: 354822

Download ZBrush 4R2 version here: 281764

Download ZBrush 4 version here (http://www.zbrushcentral.com/attachment.php?attachmentid=230731)

--E--
01-07-11, 11:59 PM
I created my own import and export buttons that automatically flip the UV's of .obj's when they are imported/exported.

I found it really tedious always having to vertically flip my textures and also things like "tool > UV > Morph UV" are a just waaay cooler when your UV's are oriented correctly.

Ideally I think this should be an incorporated option into the "Preferences Importexport options" There are already a lot of options for flipping textures but not UVs, seems kind odd to me. My scripting knowledge isn't great enough to have this be a toggle button that would run automatically like the rest of those buttons though.. =/

***Anyway, these scripts are meant to be used together as they only Flip the UVs so that your UVs and textures are not upside down in zbrush. ***

***
Instructions:
simply extract all of the contents from each .zip into your Zstartup/Zplugs folder and then in zbrush under Zplugin you will see a “E” panel – where each of these plug-ins reside.
***

import_flip_uv_v.zsc
This script opens the import .obj dialogue box and then automatically flips the .obj's UV’s Vertically for viewing of textures and UV’s correctly inside of zbrush.

export_flip_uv_v.zsc
This script automatically flips the selected tools UV's vertically then opens the export dialogue box, then flips the tools UVs back again after export. This script is used in conjunction with "import_flip_UV_V" script. If you don't flip your UV's back before exporting than your UV's will be flipped in whatever other application you are viewing your .obj in.

SorinLupu
01-13-11, 01:26 PM
Thanks a lot --E-- !

Phönix
01-18-11, 07:42 AM
@ --E--: :cool:
I also always flip the UV coordinates after import or before export (Tool -> UV Map -> Flip V) instead of flipping all the maps/textures to address the problem by the root and not just treat the symptoms.

But I really don't understand why ZBrush creates/uses UV coordinates in this unusual manner at all!?

And I would actually vote for changing (fixing!) this offbeat behaviour in the next version of ZBrush.

--E--
01-18-11, 01:09 PM
SorinLupu - Glad you can use it ;)
Phönix - Yes a global fix would be ideal. Or at the very least have it be a set option that you can turn on and always have it on every time you start zbrush like the other "Preferences > ImportExport" options. There are already a ton of options for always flipping your model upon import and export but nothing for flipping UV's. :confused:

marcus_civis
01-21-11, 09:39 AM
This little plugin gives fixed Y rotation in increments set using the slider.

Unzip to the ZStartup/ZPlugs. Restart ZBrush and there will be a new submenu called Y Axis Rotation in the Transform palette.

Set the Rot Incr slider to the increment you want, as part of a 360 degree turn. So for 45 degrees set the slider to 8. Then press the Rotate button and a model in Edit mode will be rotated by the increment.

There are a couple of issues - the canvas needs to be set at Actual Size. And sometimes the model will flip upside down - this tends to happen when the increments are exactly on 90 degrees so starting just a fraction off the full face on can solve it.

Download Here (http://www.zbrushcentral.com/attachment.php?attachmentid=206954)


[For an any axis version of this plugin see here (http://www.zbrushcentral.com/showpost.php?p=854571&postcount=40).]

marcus_civis
02-21-11, 03:18 AM
This macro will initialize ZBrush and then load the Startup Document if there is one.

Simply put the file in your ZBrush 4.0\ZStartup\Macros\Misc folder and then press the Macro>Reload all Macros button or restart ZBrush. There'll be a new button called 'Init_ZBrush' in the Macros>Misc menu.

nDman
02-27-11, 03:09 AM
Hey Marcus, I didn't have any trouble with getting the button to show up with just the .txt files in the ZStartup\Macros folder. i deleted the .zsc files and restarted ZB and the button still showed up and functioned as expected. having said that, here's a new installer that installs the .zsc files for both RoboToolPalette.txt and MOI.txt.
thanks!
this not work for me.
it show this error to me.

marcus_civis
03-14-11, 11:49 AM
Sometimes you might want to do something to all subtools and would find it useful to have a macro for future use. This example shows how it can be done if you are prepared to edit a macro in a text editor like NotePad.

First of all record a macro of the action you want to apply but just do it with one subtool. Make sure you select the subtool before starting recording the macro and don't select any other subtool before ending the recording. Save the macro to your macros folder, select a new subtool and test it, to see that the macro does what you want.

Next you'll need to open the macro file in a text editor. You'll find it in the ZStartup/Macros folder (or a subfolder of that). Open it up and you'll see code something like that below. The Gray code is the start and end of the macro; leave that as it is. The bit you need to copy is between the [IConfig,4.0] and the last bracket ']'.



//ZBRUSH MACRO - Recorded in ZBrush version 4.0
[IButton,???,"Press to run this macro. Macros can be aborted by pressing the ‘esc’ key.",
[IShowActions,0]
[IConfig,4.0]


//Copy all the code here and put it in the DoIt routine in the attached macro.



]//end of macro button

Next open the Do All SubTools macro attached to this post. You'll find the Do It routine towards the top. Paste the code from your macro in the middle of the routine:


[RoutineDef,DoIt,


//put code here


]//end of routine

When you're done editing, save the file to the ZStartup/Macros/Misc subfolder and press 'Reload All Macros' or restart ZBrush. The macro should then work on any number of subtools.

The attached example macro All Subdiv 3 will set all subtools to subdivision 3 (if possible).

See here for a Visible SubTools Macro (http://www.zbrushcentral.com/showpost.php?p=855782&postcount=46).

seniorpapa
03-27-11, 09:45 AM
Cubics.jpg

Nyx702
03-28-11, 06:52 AM
I am not sure exactly what your script does seniorpapa ?

seniorpapa
03-29-11, 03:13 AM
I am not sure exactly what your script does seniorpapa ?
Sphere-wire.jpg

seniorpapa
04-02-11, 03:19 AM
Come together Right now Over me

marcus_civis
05-28-11, 03:06 AM
This little plugin will help when you want to embed materials you have polypainted into an existing texture map. This will mean the materials display correctly when the texture map is on the model. (Note: if you are making a new texture map from polypainting you can include materials by making sure the Draw>Mrgb button is switched on before pressing Tool>Texture Map>New From Polypaint.)

Unzip the file and place the Mat2Txr02.zsc in your ZStartup/ZPlugs folder. Restart ZBrush and you will find the Mat > Txr button in the ZPlugin>Marcus Tools menu.

Instructions

1. Make sure your model is in Edit mode and with the texture displayed on it. The model must be a polymesh to work correctly. If you use one of the ZBrush primitives then it won't work unless you convert to a polymesh first.
2. Create a copy of the texture map as a back up by pressing Tool>Texture Map> Clone Txtr and exporting the map from the main Texture palette.
3. Press the Mat > Txr button.


Notes

1. Depending on your model's UVs and the size of the texture map you may find that the UV seams show. You can correct this by using Projection Master and painting over the seams with the relevant material. Make sure only the 'Material' option is used in the Projection Master dialogue.

2. Once materials are embedded in your texture map it will no longer display the selected material. You can reset the texture map by selecting the Flat Color material and pressing Tool>Texture Map>Fill Mat button.


Download here: 309231

Nyx702
05-28-11, 08:46 PM
Very awesome marcus!

marcus_civis
06-15-11, 05:33 AM
Seamless textures are easy to produce in ZBrush as you can drag the canvas by holding the ~ (tilde) key and the image will wrap around. You can then paint some more and fill any gaps. However there are a few things you need to do to export a perfect tile. This little plugin simplifies the process and will give perfect tiles in most situations [see Notes below].

Installation

1. Unzip the zip file and put the SeamlessTexture.zsc in your ZStartup/ZPlugs folder.
2. Restart ZBrush. There will be a new Tileable Texture menu in the Texture palette.


Instructions

1. Create your texture using the ZBrush canvas. Check that rendering and shadows (if you are using them) are set up to your satisfaction.
2. As a precaution, save a back up version of your Document.
3. If you want to use Best render then press the Render:Best button; if you want to use Flat render then press the Render:Flat button, otherwise Preview render will be used.
4. Press the Texture>Tileable Texture>Create Seamless button.

Depending on the canvas size and render settings the plugin will take a few moments to work. When it has finished the texture will be placed in the Texture palette from where it can be exported. There will also be an alpha of the canvas depth in the Alpha palette, should you want it.

Notes
* AA Half will not work. If you want anti-aliasing use Render:SoftRGB instead or reduce in Photoshop or another image editor.
* Some extreme shadows may produce slight artefacts at the image edge/joins.
* The document dimensions should be divisible by 2. Odd pixel dimensions will be increased/decreased by 1 pixel.

***Updated December 23 2011 to enable Flat Render option***

287372

jawa64
06-15-11, 06:02 PM
as it is quicker to save\load models when they are in their lower subdiv. Would it be possible to add another button to Svengali's quicksave plugin that has tool:SubTool:AllLow?

marcus_civis
06-16-11, 01:27 AM
as it is quicker to save\load models when they are in their lower subdiv. Would it be possible to add another button to Svengali's quicksave plugin that has tool:SubTool:AllLow?

jawa64,

You would have to ask Svengali about that.

marcus_civis
06-27-11, 08:20 AM
This is a revised version of the Y Axis Rotate posted above. Sometimes you may want to position a model face on but rotated by a set number of degrees - for example, when using the PlanarLine brush to cut a bevel. This plugin will help you do that. It works in much the same way as the Y Axis plugin except for these differences:

* it will use the rotation axis set in the Transform palette (if XYZ is selected then Y is used as the default).
* The increment slider can be set in 5 degree increments from -180 to 180 (so that rotation is in either direction).

AxisRotate.jpg


Unzip to the ZStartup/ZPlugs. Restart ZBrush and there will be a new submenu called Axis Rotation in the Transform palette.

Set the Rot Incr slider to the increment you want, in degrees. Then press the Rotate button and a model in Edit mode will be rotated by the increment.

Nancyan
06-27-11, 08:39 AM
Wow! That was quick :) - that bevel problem was just posted!!!

Thanks so much Marcus!!!

Ham Sammich
06-27-11, 08:43 AM
Fantastic!
i've been hoping for something just like this.
THANK YOU, marcus!

xexex
06-27-11, 09:28 AM
thank you very much!
it will be easier pose my models!:tu:

Morgaine
06-28-11, 11:03 PM
Thats great :tu: thank's Marcus!!!^^

Strizo
06-29-11, 05:05 PM
Sometimes you might want to do something to all subtools and would find it useful to have a macro for future use. This example shows how it can be done if you are prepared to edit a macro in a text editor like NotePad.

First of all record a macro of the action you want to apply but just do it with one subtool. Make sure you select the subtool before starting recording the macro and don't select any other subtool before ending the recording. Save the macro to your macros folder, select a new subtool and test it, to see that the macro does what you want.

Next you'll need to open the macro file in a text editor. You'll find it in the ZStartup/Macros folder (or a subfolder of that). Open it up and you'll see code something like that below. The Gray code is the start and end of the macro; leave that as it is. The bit you need to copy is between the [IConfig,4.0] and the last bracket ']'.



//ZBRUSH MACRO - Recorded in ZBrush version 4.0
[IButton,???,"Press to run this macro. Macros can be aborted by pressing the ‘esc’ key.",
[IShowActions,0]
[IConfig,4.0]


//Copy all the code here and put it in the DoIt routine in the attached macro.



]//end of macro button

Next open the Do All SubTools macro attached to this post. You'll find the Do It routine towards the top. Paste the code from your macro in the middle of the routine:


[RoutineDef,DoIt,


//put code here


]//end of routine

When you're done editing, save the file to the ZStartup/Macros/Misc subfolder and press 'Reload All Macros' or restart ZBrush. The macro should then work on any number of subtools.

The attached example macro All Subdiv 3 will set all subtools to subdivision 3 (if possible).This is a great code thanks. I was wondering, is there a way to get a code like this but that doesn't affect non-visible subtools?

marcus_civis
06-30-11, 02:32 AM
Thanks for the comments guys. :)


I was wondering, is there a way to get a code like this but that doesn't affect non-visible subtools?

Yes, you can do that. The code is a little slower because the macro goes to the top of the list first, and it won't return to the selected subtool. Also you need to remember that the selected subtool will be treated as 'invisible' if its eye icon is off.

nikhilR
07-03-11, 08:52 AM
Exactly what I was looking for. Marcus you are a lifesaver!

harbottle
08-03-11, 09:25 AM
Hi Marcus!

Man, this thread is awesome! I am now using a bunch of these scripts, as well as a few modified to fit my needs. One thing I'd like to do, but can't figure out how is this: I'd like to be able to export all my subtools with one script. I know subtool master does this, but it renames everything, and I can't have that. Things get out of hand very quickly. For example, I know some people who just use an underscore, but if you import and export often, you end up with something like this: "_________head". I just want the script to save each subtool under it's own name, in the same place I last saved something (or into a generic "current work" folder if that is too hard). Is this possible?

Thanks,
Will

Nyx702
08-03-11, 11:05 AM
You want all the subtools separate objs correct?

harbottle
08-03-11, 11:56 AM
Yes, all seperate objs. I want the exact same thing to happen as if I were exporting them one by one, only it would do all 150 at once. ;)

Thanks,
Will

marcus_civis
08-03-11, 02:00 PM
Man, this thread is awesome! I am now using a bunch of these scripts, as well as a few modified to fit my needs. One thing I'd like to do, but can't figure out how is this: I'd like to be able to export all my subtools with one script. I know subtool master does this, but it renames everything, and I can't have that. Things get out of hand very quickly. For example, I know some people who just use an underscore, but if you import and export often, you end up with something like this: "_________head". I just want the script to save each subtool under it's own name, in the same place I last saved something (or into a generic "current work" folder if that is too hard). Is this possible?

Hi Will,

Thanks for your comments, I'm glad you find the stuff in the thread useful. :)
The best way of doing what you want would be to update SubTool Master so that there's a special character (such as '~') which the plugin then ignores, saving the files using just the subtool names. (Currently there has to be something added as there's no way to just select a folder through zscript.)
I'll do it as soon as I can...

marcus_civis
08-04-11, 02:50 PM
This macro allows you to set two brushes so that a single hotkey will toggle between them.

Save the file to the ZStartup/Macros/Misc folder and either restart ZBrush or press Macro>Reload all Macros. There will be a new 'BrushToggle' button in the Macro>Misc menu.

You need to assign a hotkey to the button in order for it to work. It's best to choose a single key rather than using a modifier like 'Alt' as in that case both keys would need to be released each time.

Click the button any time to store a brush. The macro stores a 'primary' brush and a 'secondary' brush. All this means is that if you select a different brush and then press the hotkey the primary brush will be selected. Brushes are stored between ZBrush sessions.


265659

Tallooriravi
09-05-11, 05:44 AM
Hi Marcus,

I tried that mat>txr plug in I am not getting exactly what you said please post some screenshots by using this technique it will very helpful for me,I am using Zbrush-4 windows xp sp2.

phrenzy84
09-24-11, 05:30 AM
Hey there marcus, is it safe to use lasso toggle script work in R2?

marcus_civis
09-24-11, 06:10 AM
Hey there marcus, is it safe to use lasso toggle script work in R2?


I've not encountered any problems with the lasso toggle. Some of the other stuff in this thread will need updating though because of interface changes.

ancomic
09-24-11, 09:46 PM
XYZ Tool Postion Zscript, ZBrush 4R2 version works fine.(Operate normally)


XYZ Tool Postion / ZBrush 3.1 :tu:
http://www.zbrushcentral.com/showthread.php?49729-XYZ-Tool-Postion-ZBrush-3.1-Update&pp=15
.

phrenzy84
09-25-11, 03:52 AM
cheers marcus, that was the only script i was worried about since i use it so much.


btw tried it and it works a treat :)

marcus_civis
10-04-11, 04:32 AM
Sometimes it can be useful to copy and paste the Tool>Export Scale and Offset values from one mesh to another. This little plugin allows you to do that, and also save the values as a file that you can load later.

Unzip the file and put the ScaleOffsetCopyPaste.zsc in your ZStartup/ZPlugs folder. Restart ZBrush and you will have a new menu in the Tool palette called Tool Export Values. The Buttons should be self-explanatory.

Download here: 275401

zber2
10-04-11, 04:45 AM
Sometimes it can be useful to copy and paste the Tool>Export Scale and Offset values from one mesh to another. This little plugin allows you to do that, and also save the values as a file that you can load later.

Unzip the file and put the ScaleOffsetCopyPaste.zsc in your ZStartup/ZPlugs folder. Restart ZBrush and you will have a new menu in the Tool palette called Tool Export Values. The Buttons should be self-explanatory.

Download here: 275401Thanks Marcus! :)

marcus_civis
10-05-11, 02:17 PM
If you find the default 'Fit Mesh' function leaves your models a little larger than you'd like then you could try this macro. Save the file to the ZStartup/Macros/Misc folder and either restart ZBrush or press Macro>Reload all Macros. There will be a new 'Fit Mesh' button in the Macro>Misc menu. Give the button a hotkey for ease of use.

Download: 275679

kvmorgan
10-06-11, 06:26 AM
If you find the default 'Fit Mesh' function leaves your models a little larger than you'd like then you could try this macro. Save the file to the ZStartup/Macros/Misc folder and either restart ZBrush or press Macro>Reload all Macros. There will be a new 'Fit Mesh' button in the Macro>Misc menu. Give the button a hotkey for ease of use.

Download: 275679

Thank you!

Seavannah
10-06-11, 07:56 PM
I was wondering if the Turntable plus works for ZB4r2. I tried it and it didn't work for me, is it just me? If not I know your a busy person but was wonderin when it might be working for the zb4r2. I was wonderin also if it will work on a mac? I love this plugin and use it a lot and plannin to use it even more now. Thanks for all the cool plugs over the years.:tu::D:tu:

marcus_civis
11-08-11, 10:14 AM
This plugin provides a single button for exporting all the BPR Render passes.

To install, download the attached file to your Desktop and unzip. Place the ExportBPRpasses.ZSC in your ZBrush 4R2/ZStartup/ZPlugs folder. Restart ZBrush and there will be a new Export All BPR Passes button in the Render>BPR RenderPass menu.

After doing a BPR render press the button to export all maps. You will be asked for a file name - this will become the prefix for the files which will then have _Shaded, _Depth, _Mask and so on added to them.

Note that if you alter the BPR Render options there may still be a map exported. For example, if you turn off Shadows after doing a render with shadows on, there will be still be an image associated with the passes icon and this will be exported again.

Existing files will not be overwritten. If there is already a file of the same name then digits will be added: Rhino_Depth.psd, Rhino_Depth001.psd, etc.

ZBrush 4R2 download here: 281634


ZBrush 4R2b version download here: 291624

Phönix
11-08-11, 10:58 AM
This plugin provides a single button for exporting all the BPR Render passes. ...

Thank you Marcus,

this sounds like a very useful timesaver and workflow enhancement! :cool:

Kind regards,
Tom

marcus_civis
11-09-11, 03:49 AM
Thanks guys for the kind words. :)

Seavannah,

I have updated the beta version of Turntable Plus for ZBrush 4R2. See here (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4-amp-4R2&p=759928&viewfull=1#post759928).

Seavannah
11-11-11, 05:03 PM
Thank you thank you and thank you again marcus_civis.:D I really appreciate the many plugs/scripts/macros you make. They all make my life with zb much more easier and these new or updated ones are the best and major time savers! Thank you for getting back to me I know you are busy and disregard my last PM, I should of came onto your thread before writing it lol I didn't think this present would come so quickly lol should of known :o. You are awesome! Thanks marcus_civis for always updating and fixing these, too, for free. My goodness I feel like I did when we first got zb4 and zb4r2 wickedly wonderful. Love the Export All BPR Passes one too and thank you again for all of them I use your stuff on a daily basis while on zb. You take care and happy zbrushing! :D

seith
01-25-12, 06:57 AM
Hello, I've installed the plugin for ZB4r2b (just released) but it doesn't seem to work; the button is there but it says there are no render passes to save (although I just made a BPR and the passes are really there). Is the plugin only compatible with ZB4r2?

And if I may: How are those plugins made? I mean obviously they're not just text files. Are those compiled? And if so, how? Thanks...

marcus_civis
01-25-12, 09:48 AM
seith,

I've just updated the Export BPR Render Passes plugin posted above. Use that version and all should be well.

Plugins are made using the ZScripting language (written as a text file) and are automatically compiled by ZBrush into a ZSC file when you load the text file. You can find out all about ZScripting here:
http://www.pixologic.com/docs/index.php/ZScripting

seith
01-25-12, 01:28 PM
Thank you very much Marcus, it works like a charm!

In fact it's so basic (in the sense of "fundamental") and useful I can't even understand how that function isn't included in the program by default.

zbc_fjg
02-01-12, 10:59 AM
Is it possible to have polyframe without the wireframe, just the color of the groups? Maybe a zscript? This would make highpoly mesh (like dynamesh) with polygroups on easier to view.

edit: polypaint from polygroups works, just curious if this would be possible.

marcus_civis
02-01-12, 11:05 AM
Is it possible to have polyframe without the wireframe, just the color of the groups? Maybe a zscript? This would make highpoly mesh (like dynamesh) with polygroups on easier to view.

edit: polypaint from polygroups works, just curious if this would be possible.


Just set Preferences>Draw>PFrame to 0.

dragotron
02-03-12, 04:44 PM
I installed TurntablePlus into ZBrush 4r2 with the ZBrush4r2 version but it isn't showing up in my Zplugins directory or any other menu...?

marcus_civis
02-04-12, 04:14 AM
I installed TurntablePlus into ZBrush 4r2 with the ZBrush4r2 version but it isn't showing up in my Zplugins directory or any other menu...?

Turntable Plus should show up in the Movie palette. If it is not there then you haven't installed correctly. However, if you are using 4R2b then some functions may not work correctly as I need to check over and update the plugin...

marcus_civis
03-19-12, 08:16 AM
I've updated the Turntable Plus beta version for 4R3. (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4.0&p=759928&viewfull=1#post759928)

Gareee
03-19-12, 08:28 AM
Is there any plugin that will retain obj grouping and material groups coming into zbrush, and then exporting it back out?

Currently you can import and have material groups converted to polygroups, but rigging grouping is lost. Also when you export, poly groups are converted to obj rigging groups. 8/

marcus_civis
03-19-12, 08:35 AM
Is there any plugin that will retain obj grouping and material groups coming into zbrush, and then exporting it back out?

Currently you can import and have material groups converted to polygroups, but rigging grouping is lost. Also when you export, poly groups are converted to obj rigging groups. 8/

ZBrush can only import one sort of group at a time, so can only import either materials as groups or OBJ groups. A plugin couldn't change that (for example, what would happen when groups overlapped). However, it would not be difficult to write a plugin that swapped back the original groups & material groups on export. I could probably add this to the Poser Utilities plugin. (http://www.zbrushcentral.com/showthread.php?163130-Poser-Utilities-plugin-%28beta%29-for-ZBrush-4R2-%28updated-January-4-2012%29)

Gareee
03-19-12, 08:45 AM
That would be a very nice addition!

When working on a rigged figure for either lightwave or poser, I usually have both types of groups, and I'm amazed they are not retained for compatibility with other applications afte rall these years.


BTW, does the poser plugin still work in R3?

marcus_civis
03-19-12, 09:29 AM
This plugin is more a curiosity than anything but perhaps some people will find it useful. It's designed to scale up a model so that a large image can be made from a series of smaller images. In theory very large images are possible but this will depend on your system as rendering at ZBrush's maximum document size can be heavy on resources.

The example image, using the Kotelnikoff Earthquake.ZPR included with ZBrush 4R3, is 53 x 40 inches at 300ppi (16040 x 11829 pixels) and was stitched together from 16 separate images. The close-up shows size as actual pixels.

Full instructions in the zip: 299660

stone3d
03-19-12, 09:58 AM
Very cool.:tu:

Nyx702
03-22-12, 10:43 AM
Document MaxResize

This plugin is more a curiosity than anything but perhaps some people will find it useful. It's designed to scale up a model so that a large image can be made from a series of smaller images. In theory very large images are possible but this will depend on your system as rendering at ZBrush's maximum document size can be heavy on resources.

The example image, using the Kotelnikoff Earthquake.ZPR included with ZBrush 4R3, is 53 x 40 inches at 300ppi (16040 x 11829 pixels) and was stitched together from 16 separate images. The close-up shows size as actual pixels.


That is so awesome Marcus! I have been thinking about this one for a while! Thanks so much.

marcus_civis
03-22-12, 12:19 PM
Thanks stone3d and Nyx702! :)

Nyx702
03-23-12, 02:17 PM
Here is something I made recently. Pretty basic compared to some of these guys :)

It takes your currently masked geometry and duplicates it WITHIN the same Subtool. Similar to 3dsMax duplicate to element. It works with a fully masked element or partially masked geometry.

I made this because I was placing 4-5 different spikes all over a creature. I didn't want 100 Subtools to manage and wanted to duplicate different ones as I went.

300400

300401

Gareee
03-23-12, 03:11 PM
OOOoooOOO!!! THAT looks handy! Thanks!

jawa64
03-24-12, 10:23 AM
I made this because I was placing 4-5 different spikes all over a creature. I didn't want 100 Subtools to manage and wanted to duplicate different ones as I went.

So this seems to work with subdivs for single levels or dynamesh people can just use Duplicating_a Mesh with Transpose (http://www.pixologic.com/docs/index.php/Transpose_Additions#Duplicating_a_Mesh_with_Transp ose)
unmask what is to be cloned press (W) Move:transpose line and (Ctrl+click) on the Center red circle to pull out another instance of the unmasked polys within the same subtool.

Francesco Mai
03-25-12, 04:44 AM
This plugin is more a curiosity than anything but perhaps some people will find it useful. It's designed to scale up a model so that a large image can be made from a series of smaller images. In theory very large images are possible but this will depend on your system as rendering at ZBrush's maximum document size can be heavy on resources.

The example image, using the Kotelnikoff Earthquake.ZPR included with ZBrush 4R3, is 53 x 40 inches at 300ppi (16040 x 11829 pixels) and was stitched together from 16 separate images. The close-up shows size as actual pixels.

Full instructions in the zip: 299660

Dear Marcus,
this plug-in seem very interesting for each digital artist that need to print at quite high size.Is is a pity for some limits but I hope
than in future could be as a classical BPR..

A question.

I love 2.5 pixol images as you can see here (http://www.zbrushcentral.com/showthread.php?130089-An-unusual-Zbrushing..../page1)

I find that the best method to achieve decent hi-resolution working canvas for printing is to zoom out in discrete step,I mean 0,5 or 0.25 or 0,125 so I can work at the whole images.Of course I know the importance of AA button to have a nice antialiasing but I have also a 4 time less density in pixels and condemn myself to have a smaller printed image.

Now,as you know,antialiasing with soft RGB in Zb with classical Best Render"mode in not very good.Can you suggest me a method or invent a plug to achieve very high resolution images with 2.5 pixol as maxresize plug in?Do you think that in future there will be a chanche to have a new 2.5 rendering engines with some more features?.I ask you because I am a digital artist that exhibit my works worldwide and my dream is have big Lambda print of the fantastic world of 2.5 D.For now I can show my Zbrush works onlu on monitor :(
With classical rendering and polygons 3d packet is easy to chose the desired resolution and here you are you fantastic high res images.But wit canvas of Zbrush and 2.5 D tools how can I do?

Thank you for your help :)

Francesco Mai

Roland Kaiser
03-25-12, 05:18 PM
XYZ Tool Postion Zscript, ZBrush 4R2 version works fine.(Operate normally)


XYZ Tool Postion / ZBrush 3.1 :tu:
http://www.zbrushcentral.com/showthread.php?49729-XYZ-Tool-Postion-ZBrush-3.1-Update&pp=15
.

use this version made for ZB4 R2, with any bugs fixed

http://www.zbrushcentral.com/showthread.php?161588-quot-Axis-quot-Plugin-for-ZBrush-4r2
Roland

Nyx702
03-25-12, 05:48 PM
So this seems to work with subdivs for single levels or dynamesh people can just use Duplicating_a Mesh with Transpose (http://www.pixologic.com/docs/index.php/Transpose_Additions#Duplicating_a_Mesh_with_Transp ose)
unmask what is to be cloned press (W) Move:transpose line and (Ctrl+click) on the Center red circle to pull out another instance of the unmasked polys within the same subtool.

Yeap. That is correct. I love that feature and wish I could use it all the time. This macro is for the many many times your mesh isn't one of the above options.

marcus_civis
03-27-12, 02:40 AM
Dear Francesco,

The problem with 2.5D images is that they are linked to the resolution of the document. A pixol is no different from a pixel in that respect. So the best way to get a large image is to set the document size to as large as possible. The ZBrush maximum of 8192x8192 is enough to give you an image of 69 cm square (27 inches) at 300 ppi. You can work on this at any zoom and then export at the full size. There's no need to use AAHalf as print resolution will effectively create its own anti-aliasing.

So, to answer your question, it is not directly possible to write a plugin like the MaxResize one for 2.5D.

Francesco Mai
03-27-12, 02:49 AM
Dear Francesco,

The problem with 2.5D images is that they are linked to the resolution of the document. A pixol is no different from a pixel in that respect. So the best way to get a large image is to set the document size to as large as possible. The ZBrush maximum of 8192x8192 is enough to give you an image of 69 cm square (27 inches) at 300 ppi. You can work on this at any zoom and then export at the full size. There's no need to use AAHalf as print resolution will effectively create its own anti-aliasing.

So, to answer your question, it is not directly possible to write a plugin like the MaxResize one for 2.5D.

Hello Marcus,
thank you so much for your suggestion about the natural antialiasing of printing a 8k images...Your help was precious!

Seavannah
03-31-12, 03:04 AM
I was wondering is there anyway to render out the BPR Render Passes not just for the turntable but for the timeline movie/animation? Would really love to render out an animation I made using the timeline but not to have to export all the Render Passes Manually frame by frame to composite the passes in Photoshop like we can with your wonderful Turntable Plus. Thank you for all the great cool stuff that has made ZB even easier to use.

I was also wondering is there a script that can make subtitles in ZB for tutorial movies where we could type the things we are saying for the hard of hearing or those that just want to be able to read what is being done?

A big big thank you for your time and all your hard work over the years!

lins.monte
04-17-12, 05:07 AM
Hi Marcus,

I am a new ZBrush user and I have a simple question about the sequence I should use to save the info into the macro.
Sorry, it is a basic question but I hope you can help me.

After I select my first brush, I click on BrushToggle button and the message says: Primary Brush stored. Should I click the button again when I select the second brush? If u don't mind I would like to ask the correct sequence for that. Thanks for your time and for the script.



This macro allows you to set two brushes so that a single hotkey will toggle between them.

Save the file to the ZStartup/Macros/Misc folder and either restart ZBrush or press Macro>Reload all Macros. There will be a new 'BrushToggle' button in the Macro>Misc menu.

You need to assign a hotkey to the button in order for it to work. It's best to choose a single key rather than using a modifier like 'Alt' as in that case both keys would need to be released each time.

Click the button any time to store a brush. The macro stores a 'primary' brush and a 'secondary' brush. All this means is that if you select a different brush and then press the hotkey the primary brush will be selected. Brushes are stored between ZBrush sessions.

marcus_civis
04-17-12, 08:39 AM
Seavannah,

Thanks for your kind words and I'm sorry for the delay in replying to your question. I'm afraid that there's no way to automatically export single frames from the Timeline. :( (You can't actually advance the Timeline a single frame at a time; if you could, zscripting this would be easy.)

On your other question, I don't think that there's an efficient way to do this. There are ZScript Notes, and it might be possible to write a plugin to allow you to type these directly from within ZBrush (I actually wrote a zscript that did this a very long time ago!), but they have limitations now, would get in the way of whatever was being demonstrated and I don't think they would be easy to read in a movie.



lins.monte,

Yes, just select your second brush and press the button. After you see the 'Secondary brush stored' message, the next time you press the button a new primary brush will be stored. So if you change your mind just select a different brush and press the button.

lins.monte
04-17-12, 02:26 PM
Thanks! Great work.


Hi Marcus,

I am a new ZBrush user and I have a simple question about the sequence I should use to save the info into the macro.
Sorry, it is a basic question but I hope you can help me.

After I select my first brush, I click on BrushToggle button and the message says: Primary Brush stored. Should I click the button again when I select the second brush? If u don't mind I would like to ask the correct sequence for that. Thanks for your time and for the script.

boozy floozie
05-22-12, 09:14 PM
It's a veritable Aladdin's cave in here hosted by a true Genie.

Best wishes Marcus and thank you.

marcus_civis
05-29-12, 09:41 AM
lins.monte and boozy floozie,

Many thanks for your kind words. :)

I've updated the Materials to Texture (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4-amp-4R3&p=838764&viewfull=1#post838764) plugin to make it a little more useful. It will now embed all polypainted materials in an existing texture map. To embed a single material you can use the Tool>Texture Map>Fill Mat button (new to 4R3).

cgmystic
06-21-12, 11:04 AM
I had actually done that already (which is why I thought it would be good to start this repository!):

The little plugin in the zip will give you the old Lasso button behaviour. Unzip and put the file in you ZStartup/ZPlugs. Restart ZBrush and you will have a Marcus Tools menu in the ZPlugin palette. In that will be a switch named Lasso.

The switch will toggle the Lasso and Paint mask/selection brushes. With the Paint mask selected you will be able to drag a rectangle from outside the model, just as in 3.5. You can assign a hotkey to the switch if you wish.

The first time you use the switch in a session you may have to press it twice, depending on your setup. You may also get the message about selecting the mask option, which you can get rid of for the rest of the session.

MARCUS:
Thanks for the the old Lasso button behaviour .... :tu:

pabgo
06-25-12, 02:04 PM
lins.monte and boozy floozie,

Many thanks for your kind words. :)

I've updated the Materials to Texture (http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4-amp-4R3&p=838764&viewfull=1#post838764) plugin to make it a little more useful. It will now embed all polypainted materials in an existing texture map. To embed a single material you can use the Tool>Texture Map>Fill Mat button (new to 4R3).
im having trouble embeding a material to my model's texture map. when you say embed do you mean 'bake to texture'? i cant seem to find any info on the fill mat button.

EDIT: nvm, i figured it out, thanks a lot marcus, very useful

marcus_civis
06-25-12, 02:14 PM
im having trouble embeding a material to my model's texture map. when you say embed do you mean 'bake to texture'? i cant seem to find any info on the fill mat button.

No, it's not baking to texture. It simply means that when your model has a texture map applied to it it will display the material your have embedded using 'Fill Mat'. (Normally a model with a texture map will show the selected material.) This is only good within ZBrush, and will not do anything in other programs.

marcus_civis
07-03-12, 04:24 AM
This little plugin will rotate a model in Edit mode, like a turntable (but no movie is recorded). It's fairly basic and won't work so well on heavy or scaled-up meshes.

Unzip the file and put the spin.zsc in the ZStartup/ZPlugs folder. Restart ZBrush and in the Transform palette there will be a new button 'Spin' and a new slider 'Speed'.

You need to assign a hotkey to the button for the spinner to work. Don't use a modifier key (such as Ctrl, Shift or Alt) as this won't work.

Set the speed using the slider then press and hold the hotkey; the model will turn around the Y axis.


313310

marcus_civis
07-06-12, 04:25 AM
This macro will reload a texture onto a model. This is useful if you are working on a texture in a program like Photoshop and want to see the progress in ZBrush. Loading directly onto the model the texture map does not appear in the main Texture palette, saving resources.

Save the file to your ZStartup/Macros/Misc folder. Press Macro>Reload All Macros or restart ZBrush and there will be a new macro button called Load Txtr in the Macro palette.

* Press the button to load a new texture onto the current subtool.
* To refresh the texture, assign a hotkey to the macro button. Pressing the hotkey will then reload the texture on to the model.
* To load a different texture just press the macro button and choose a different file.

313597

--E--
07-06-12, 09:04 AM
wooooooooooooooooooooooooooooow!

Thank you so much for the refresh texture marco Marcus! I have been wanting something like this forever! This will save sooooooooooooo much time!!!:tu::tu::tu::tu::tu::tu:

Nyx702
07-08-12, 03:57 PM
Really cool Marcus! Very useful plugins.

supermanu
07-15-12, 04:43 AM
Hello marcus, has always your script are life saver in production. Thanks you very much for your time and hard work!:tu:
I have updated the script Turntable Plus for ZBrush 4R3, maybe i'm not doing something correctly, but it look like is not taking in account the AA parameter of the BPR?
I'm not sure what to do? The only solution I find is to double the canvas size... but is not as good as the BPR settings for antialiasing.

Am i missing something?:confused:

marcus_civis
07-15-12, 08:05 AM
Hello marcus, has always your script are life saver in production. Thanks you very much for your time and hard work!:tu:
I have updated the script Turntable Plus for ZBrush 4R3, maybe i'm not doing something correctly, but it look like is not taking in account the AA parameter of the BPR?
I'm not sure what to do? The only solution I find is to double the canvas size... but is not as good as the BPR settings for antialiasing.

Am i missing something?:confused:

Hi supermanu,

Thanks for your kind words and I'm glad you find the scripts useful. For Turntable Plus, I'm afraid that it can't use the AAHalf setting, though if you are using BPR rendering the SPix setting of 3 should give you better results than using AAHalf.

EDIT: Oh, I think maybe you are referring to the edge of the model in the 'Image' file exported. This is the same as the Image exported under the BPR render passes and it doesn't have anti-aliasing at the edge so that you don't get any of the background color. You need to use the mask image to composite with a background of your choice (in After Effects or wherever). I can see that there should be an option to export a standard BPR render without the passes - I'll do that when I can get to it.

supermanu
07-15-12, 10:08 AM
Thank you for the super quick answer marcus! I understand think much better now.:tu:

ocmtime
07-21-12, 10:49 AM
On smaller displays some buttons in the standard UI are off the screen. (They are still available in the Transform palette but obviously that's not as convenient.)

This configuration will solve the issue:

1. Unzip the file to your ZBrush 4.0\ZStartup folder.
2. Start ZBrush and press Preferences>Congig>Load UI. Select the SmallerUI.cfg file from the ZBrush 4.0\ZStartup folder.

The adjusted UI will be loaded. Buttons that are on the lower right column in the default UI have been moved to the top right-hand side. You may need to close the right tray (with the Tool palette in it) in order for them to appear - to do this click on the divider.

If you are happy with the new layout save it as your custom interface by pressing Shift+Ctrl+i.

>> Download here << (http://www.zbrushcentral.com/attachment.php?attachmentid=211382)

this is not working anymore .
edit:link worked a few minutes after I posted

but the next question is still on :) :

and do you know a way to move the interface menu divider to the middle of the screen so that more columns of pulldown menus can be dragged and dispalyed at the same time in a largea area of the screen ?

marcus_civis
07-22-12, 02:02 AM
but the next question is still on :) :

and do you know a way to move the interface menu divider to the middle of the screen so that more columns of pulldown menus can be dragged and dispalyed at the same time in a largea area of the screen ?

You can have both the left and right trays open at the same time but they can only be one pallette in width (though you can have several palettes in each).

Gareee
07-27-12, 10:54 AM
Marcus: Will this thread be renamed, or will a new thread be created for new scripts for ZB4R4?

ocmtime
07-27-12, 03:22 PM
@Marcus:thanks for the info

Syance
08-04-12, 04:29 PM
Hello Marcus. Is it possible to have multiple versions of your brush toggle? I would like to hotkey a few more of my favorite brushes.

kaisasose
08-17-12, 10:14 AM
Hi guys. I was just wondering if anyone could help me with how to have the polysphere.ztl (without poles) load automatically. Save me the trouble of opening lightbox every time I open Zbrush.

thanks.

marcus_civis
08-17-12, 11:08 AM
Hi guys. I was just wondering if anyone could help me with how to have the polysphere.ztl (without poles) load automatically. Save me the trouble of opening lightbox every time I open Zbrush.

thanks.

You can set up a macro to load a project when ZBrush starts:

(1)To create the macro, copy this code into an empty text file (in Notepad):



[IButton,???,"Startup macro",
[FileNameSetNext,"ZBRUSH_ZPROJECTS\DefaultSphere.ZPR"]
[IPress,File:Open]
]

(2) Save the file to the ZBrush 4R4\ZStartup\Macros\Misc\ folder and call it StartupMacro.txt

(3) Now you need to edit the default zscript file. In the ZBrush 4R4\ZScripts\ folder find the DefaultZScript.txt file and open it in Notepad.

(4) Change the contents to this, and save the file:



//startup
[If,1,
[IPress,Macro:Macros:Misc:StartupMacro]
]
[pd]


Now whenever you start ZBrush the DefaultSphere project will be loaded.

kaisasose
08-17-12, 06:51 PM
Thanks Marcus, that worked great. :tu:
The DefaultSphere.ZPR changed my UI colours so I saved a separate ZPR and used that one in the Macro instead.

The lightbox still opens all the time though, even though I've turned it off in the preferences and saved config several times. Seems to be an ongoing problem it seems.

Gareee
08-17-12, 07:39 PM
The latest Z4.4 R2 update fixed lightbox opening... did you install it yet?

kaisasose
08-17-12, 07:58 PM
Yes I have. For some reason it was still loading lightbox till I changed it to "Run as Administrator" now it's fine. :)

B8Kitano
08-18-12, 06:46 AM
The latest Z4.4 R2 update fixed lightbox opening... did you install it yet?

This is true as long as you don't save your UI, when it auto activate it.

Gareee
08-18-12, 07:19 AM
This is true as long as you don't save your UI, when it auto activate it.

I have a custom UI, and lightbox remains closed. Once of the things mentioned in the install (As just mentioned above) is that they suggest zbrush being set in windows program preferences to run as administrator. Have you set that? Did seting it correct the issue for you?

zwick
09-30-12, 08:47 PM
custom symmetry buttons:



X, Y, Z buttons for choosing an axis, these do not toggle nor allow you to do XY or XYZ combos, it only uses 1 at a time.
(R)= turns on/off radial
numbers are preset amounts for radial symmetry


I made this mainly because I could not keep the symmetry tools from vanishing from my custom menus.

Included source code so you can add/change presets. Very simple code.

shows up under Zplugin/SymmetryTools

-z

marcus_civis
10-01-12, 02:38 AM
I made this mainly because I could not keep the symmetry tools from vanishing from my custom menus.


Thanks for posting this, though if you upgrade to ZBrush 4R4 Update 2 (http://www.zbrushcentral.com/showthread.php?170338-Questions-amp-Troubleshooting-for-ZBrush-4R4-Update-2) you'll find that you can make the symmetry buttons part of a custom interface. Upgrading is free to registered users.

zwick
10-01-12, 07:04 AM
Thanks Marcus, but unfortunately I am running with the latest update and the issue (with symmetry) is still there. -z

marcus_civis
10-01-12, 08:05 AM
Thanks Marcus, but unfortunately I am running with the latest update and the issue (with symmetry) is still there. -z

That's strange. Works fine for me on both platforms (though the buttons only appear when I have a 3D tool selected).

Also, you will need to create a completely new custom UI after updating. Any problems you are having could be due to using an outdated configuration file.

Gareee
10-01-12, 09:21 AM
Its working fine here. I think I did recreate my ui from scratch, as recommended.

zwick
10-01-12, 10:59 AM
Its working fine here. I think I did recreate my ui from scratch, as recommended.

Ok, that's probably the issue. I didn't recreate my menu I just drag the symmetry tools to it again. No matter, I've grown to like my custom buttons, realizing I never use symmetry with more than 1 axis at a time, and I like having the preset amounts for radial.

ilerchik
10-29-12, 05:59 AM
This is a beta version of Turntable Plus for ZBrush 4 which I am posting here because some people have found it useful. This will export an image sequence for BPR renders.

Download ZBrush 4R3 version here: 299646

Download ZBrush 4R2 version here: 281764

Download ZBrush 4 version here (http://www.zbrushcentral.com/attachment.php?attachmentid=230731)

I am using 4r4 version I downloaded Turntable Plus for Zbrush 4, and I get an error " Zscript Note: Interface item could not be found. SCRIPT: TurntablePlus_4_02beta.txt ERROR: Render:Create Maps"

Is there a TurntablePlus for Zbrush 4r4?

Thanks

marcus_civis
10-29-12, 06:11 AM
I am using 4r4 version I downloaded Turntable Plus for Zbrush 4, and I get an error " Zscript Note: Interface item could not be found. SCRIPT: TurntablePlus_4_02beta.txt ERROR: Render:Create Maps"

Is there a TurntablePlus for Zbrush 4r4?

Thanks

There are several versions in that post. Try the 4R3 version - that should be OK with 4R4.

Marcelo P
03-12-13, 02:44 PM
There is a version for ZBRUSH4 R5??
:cry:


This is a beta version of Turntable Plus for ZBrush 4 which I am posting here because some people have found it useful. This will export an image sequence for BPR renders.

For installation, follow the general instructions here:
http://www.pixologic.com/docs/index.php/Plugin_Installation

Note that this is simply a first pass and there will no doubt be issues and some things may not work as expected. It does not work with the Timeline.

Instructions:
The plugin works in the same way as before except for some new switches for BPR.
* Turn on the Turntable Plus>Best Preview Render switch to use BPR
* You then need to set the little switches to export the different maps
* After pressing the Render Movie button you'll get the options dialog. Note that if you are using BPR then the HDGeometry, Image, Alpha & Depth options will be ignored - you need to set these options either through the Img, Dep & Msk switches in the Turntable Plus menu or in the case of HDGeometry, the option in the Render palette.
* After the options dialog you'll be asked to save the first file for each of the different image exports. Note that what Turntable Plus calls an 'Alpha' is the BPR 'Mask'.
* For other BPR Render options, set the options in the Render palette.

Download ZBrush 4R3 version here: 299646

Download ZBrush 4R2 version here: 281764

Download ZBrush 4 version here (http://www.zbrushcentral.com/attachment.php?attachmentid=230731)

marcus_civis
03-15-13, 03:44 AM
There is a version for ZBRUSH4 R5??
:cry:

Have you tried the 4R3 version? I think it should work OK.

Doqpelgänger
04-28-13, 12:29 PM
works fine but...

354762

Tetsuoo
04-29-13, 03:59 AM
Same here :( I don't even know how to save the sequence, as i can't see the options, like shown in the previous post. At best i get an error msg saying "Unable to save" and pointing out the TurntableData folder for some reason.
Tested on 4R5, maybe that's why

marcus_civis
04-29-13, 04:41 AM
Hi guys,

Apologies for the problems. Download the 4R3 version at the link on this page:

http://www.zbrushcentral.com/showthread.php?94752-Useful-small-ZScripts-and-Macros-for-ZBrush-4-amp-4R3&p=759928&viewfull=1#post759928

The version you have has a missing data folder which is why the images don't show. If you are using BPR then you can ignore the options in the dialog box as they apply to Best render but you'll need to click OK so that the Save dialog appears. I hope to update this for 4R5 soon but it needs a bit of work and I don't have time at the moment.