View Full Version : store camera position
LeXuSMalus
08-23-07, 10:31 AM
Hi everyone.
I`m writing (and rewriting)a zscript for store position of objects.
it can help you in many cases, like store position your model in same illustration document, in work with foto references, end more.
it can save your stores in file, and you can load they anytime.
Place it in zplugin, and you find it in zplugin -> store_camera2v.
I also upload suorcecod. it not for instal!!!
Roland Kaiser
08-23-07, 07:55 PM
OK,LeXuSMalus, I will try this.
Anyway thanks for sharing
Greets
Roland
marcus_civis
08-24-07, 01:03 AM
LeXuSMalus,
I've moved this thread because your zscript as it is could lead to problems for users. You have written it as a plugin, not a macro, so it should not be installed in the macro folder. Doing so could lead to ZBrush becoming unstable, or failing to start at all.
User plugins should be installed in the ZStartup\ZPlugs folder, and you should provide the compiled .zsc file, otherwise the plugin will fail to load at start up.
On the zscripting side, it is best to declare global variables once only at the top of the zscript. Also, variables will lose their values whenever another zscript/plugin/macro is called, so the transform settings will be lost. Memory blocks offer a way to store values throughout a ZBrush session. These, and other zscripting methods are discussed on the wiki:
http://www.zbrush.info/docs/index.php/ZScripting
http://www.zbrush.info/docs/index.php/Getting_in_Deeper:_Advanced_Techniques#Total_Recal l_-_Memory_Blocks
WailingMonkey
08-24-07, 03:10 PM
hmm...hopefully LeXuSMalus can do a re-write on this (even though
I've had no conflicts with a cursory test), as I could see it being
pretty handy...
oh, and thank you for sharing your work, LeXuSMalus! :o
:D
WailingMonkey
Christian Michelin
08-24-07, 11:09 PM
You just SAVED MY LIFE!!!
There is no other way to say it.
my zproject brush is now infused with the power of the deathstar!!
THANX!!
sirquadalot
08-27-07, 06:37 AM
This sounds very useful! I hope it works.
LeXuSMalus
09-01-07, 06:11 PM
Thenx everyone.
I have rewritten it. I hope it unsuspicious.
P.S. marcus_civis, thanx for links and post.
WailingMonkey
09-01-07, 10:23 PM
Thanks so much for re-writing this, LeXuSMalus! :)
The camera storing and recalling works perfectly, however I get this
error when trying to 'save_to_file':
http://img297.imageshack.us/img297/8426/storecamerroroa9.jpg
My quick test was to create a Sphereinder3D, save camera 1, move/rotate/scale,
save camera 2, move/rotate/scale, save camera 3,
move/rotate/scale, save camera 4...then restore all 4 in same order (1-4)...
then try to 'save_to_file'...then get the error and no ability to save to file.
Any idea what I might have done wrong? (for install, I just extracted the
.zsc file into the \ZStartup\ZPlugs folder as usual)
WailingMonkey
LeXuSMalus
09-02-07, 06:37 AM
Oh, sorry. I miss one global variable.
I fix it
thnx WailingMonkey :)
WailingMonkey
09-02-07, 10:04 PM
nope....thank you! :D
everything's all werkin fine now.
great job! :)
WailingMonkey
Hello and thank you for this plugin!
Could it be possible to extend the storing slots to more then 4?
Thank you!
Gentleman
01-14-09, 05:18 AM
Hey!
What about a mac version? :lol:
LeXuSMalus
01-14-09, 09:17 AM
hello
this plugin is very very old! how you see.
i do not use them very long time.
i use new ZAppLink for these purposes. ;)
Gentleman
01-15-09, 08:40 AM
Sorry for bringing on old stuff but...... i just cant find a way to store my camera position in zbrush for mac, i just want to save camera position to make render passes and have it always in the same way (since i use zbrus also for rendering). I simply dont know how to do it. With zapplink¿?¿?¿¿?
LeXuSMalus
01-15-09, 09:20 AM
Oh, let's i say to you how it do in ZAppLink.
store.jpg (http://javascript%3Cb%3E%3C/b%3E:zb_insimg%28%27122443%27,%27store.jpg%27,1,0% 29)
The first thing you need to do is put your model in canvas as you wish.
Now push in one of the buttons 1 to store this position, every next time then you push it again, your model will be positioned as in first time.
to Save or Load views just push buttons 2 or 3.
and if you want to clear one of your positon, just push button 4 and then button with unnecessary position.
That's all :)
Svengali
01-15-09, 10:51 AM
Gent,
Download this handy little plugin that lets you preserve 4 different model views or poses to disk... with this, re-registering and rendering movies for compositing should be no problem...
ModelViews (http://www.zbrushcentral.com/zbc/showpost.php?p=476428&postcount=4)
Sven
(I see no reason why it shouldn't work with the Mac too, but if it doesn't could you post the error message or a sentence or two about how it failed? Thanks.)
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.