ZBrushCentral

Persistent Lightbox is annoying (Answered)

Lightbox keeps popping up when I load any new Zscript from the Zscript menu. I’ve shut off Lightbox at startup from Preferences(didn’t work) and then DefaultZScript.txt(shuts off LB at startup but then it keeps popping back up when I press the “load” button in Zscript menu) and I’ve shut it off in the interface yet it still keeps popping up.

What did you add to the the DefaultZScript.txt ?

The line I put in the file was a solution I read on the forums.

Also my Menu button up top doesn’t stay off between multiple instances of Zbrush running even if I save config. I added the button shutoff in the file as well.

The following are the contents of the DefaultZScript.txt file…

//startup
[IUnPress, Menus]
//MF - added the following. Lightbox is not obeying the option in prefs.
[If,1,[IPress,Preferences:Lightbox:Lightbox]]
[pd]


Your may want to modify your script. The “[if,1,” should be changed to a conditional expression which allows the script to execute one time only at start up, otherwise, it will be executed multiple times and each time it will flip the status of LightBox, i.e. open it when its close, or close it when it is open.

I’m sorry if this thing is solved as it is …but what conditional expression should be there. As I don’t know any scripting it’ll be helpful if you write down the complete lines for the solution.:confused:

I don’t understand this. Surely the DefaultZScript only executes at startup or if the user presses the DefaultZScript button on the UI? I have been using this modification for a while without the problems described.

Anyway, completely replacing the contents of the DefaultZScript with this code should fix it:


//startup
[If,[MemGetSize,Startup_Mem],,
[IUnPress,Menus]
[MVarDef,Startup_Mem,1,0]
[IPress,Preferences:Lightbox:Lightbox]
]
[pd]

Thank you very much Marcus.

Hi,
I too would like to avoid having Lightbox opening at startup. I tried the script that was posted here but all it did was hide the menu bar, Lightbox opened as usual.
I’m on a Mac, should there be some Mac specific script?

Thanks

Edit<

Sorry, this is the first thread I came to that addressed my problem, a later thread had a script that worked without hiding the menus bar.

Thanks

I ran into a problem with getting Lightbox to stop opening on startup.

I used this script (because I wanted the menu bar)

//startup
[If,[MemGetSize,Startup_Mem],
[MVarDef,Startup_Mem,1,0]
[IPress,Preferences:Lightbox:Lightbox]
]
[pd]

and the first time I tried it it worked great. I opened ZB today and Lightbox was back again. Checked the script and it had not changed. It’s as though ZB is somehow bypassing the default script and using one stored some other place.
I’m on a Mac if that makes any difference (shouldn’t) and obviously I don’t know much about scripting. Is there another place ZB would access a startup script?

Thanks

Talisen,

I think that for some reason ZBrush does not run the Default ZScript on start up on the Mac (or does not run it consistently). I’ve not so far found a satisfactory alternative.

Actually, it seems that the Default ZScript is ok but that the Lightbox button needs pressing twice:

//startup
[If,[MemGetSize,Startup_Mem],,
[MVarDef,Startup_Mem,1,0]
[IPress,Preferences:Lightbox:Lightbox]
[IPress,Preferences:Lightbox:Lightbox]
]
[pd]

OK, good to know, though disappointing. Lucky it’s not a major issue

Thanks Marcus

@ Talisen

Try the following DefaultZScript and see if that works for you.

//startup
[If,1,[IPress,Preferences:Lightbox:Lightbox]]
[pd]

The Lightbox toggle seems to work differently on the Mac and I think it is that that is causing the problem. It’s problematic testing to see if Lightbox is open but this MacOSX DefaultZScript code works for me:

//startup
[If,[MemGetSize,Startup_Mem],,
	[MVarDef,Startup_Mem,1,0]
	[CanvasClick,(document:width/2),[IHeight,1004]+200,(document:width/2),[IHeight,1004]+200]
	[If,[IExists,Edit:Undo 2],
		[IPress,Edit:Undo]
	,
		[IPress,Preferences:Lightbox:Lightbox]
	]
]
[pd]
 

Zebr2,
I tried this script but it didn’t seem to have any effect, Lightbox still opened.
Thanks for trying

Marcus,
I also tried your script and so far it does work. From what I can tell from the script, it opens a new document, creates some settings then undoes them. I don’t see this. I do see Lightbox briefly flash on then off. Then when I open a file ZB asks if I want to close the open document to which I must click yes.
Definitely an improvement. Still an extra click but I can also hit the enter key
so it’s a lot quicker.
Thank you.

The mac solution does not work on my new iMac. Please let us disable the lightbox. It is such annoyance. On the mac the lightbox is not fully functional and yet it is forced opened on startup. So every time I start Zbrush there it is and I have to turn it off. And by ‘not fully functional’ I mean I can’t go up and down in the hierarchy.

the script doesn’t work for zbrush R2(for the mac anyway), i don’t even know where to begin with zscripts. could someone update the script?

marcus_civis
Thanks again with the close LightBox on Zbrush startup script!
I t works with the lastest version of Zbrush4R4

When I first installed ZB4r4, lightbox didn’t open up at startup. As soon as I created a custom UI, it started opening up at startup again.

Hopefully this info will be useful for bug squashing this annoyance.

I’m going to try the script here to see if I can kill it that way.

Lightbox and this Quicksave thing in my Zbrush startup screen is too annoying :p.
How do I stop lightbox and quicksave?
We know piXoLogic is offering us stuff that is supposed to improve our work flow.
I want my zbrush startup interface without Lightbox or Quicksave!
I do not need Lightbox and I do not need Quicksave.
Please help me keep my zbrush startup without Lightbox Quicksave forcing me to have to manually close it.

I’ve since adjusted the Quicksave Maximum Duration and Rest Duration settings to 600 in the hope this helps …