ZBrushCentral

store camera position

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!!!

Attachments

store_cam2v.zip (2.21 KB)

store_cam2v_source.txt (2.47 KB)

OK,LeXuSMalus, I will try this.
Anyway thanks for sharing

Greets

Roland

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_Recall-_Memory_Blocks

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

:smiley:

WailingMonkey

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!!

This sounds very useful! I hope it works.

Thenx everyone.
I have rewritten it. I hope it unsuspicious.

P.S. marcus_civis, thanx for links and post.

Thanks so much for re-writing this, LeXuSMalus! :slight_smile:
The camera storing and recalling works perfectly, however I get this
error when trying to ‘save_to_file’:

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

Oh, sorry. I miss one global variable.
I fix it
thnx WailingMonkey :slight_smile:

nope…thank you! :smiley:

everything’s all werkin fine now.

great job! :slight_smile:

WailingMonkey

Hello and thank you for this plugin!
Could it be possible to extend the storing slots to more then 4?
Thank you!

Hey!

What about a mac version? :lol:

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. :wink:

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¿?¿?¿¿?

Oh, let’s i say to you how it do in ZAppLink.

[store.jpg]

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 :slight_smile:

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

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.)

Hi everybody!
i was readin this thread and i downloaded the useful plug in …I used the link to the first post and i was wondering where to find the updated one(may be it has more than 4 position).
Thanks bye!

I’d like to store the position of my mesh, or camera position but have no idea how.

Timeline>>http://docs.pixologic.com/reference-guide/movie/timeline/

I really love this plugin, it acts like mudbox’s save camera feature