1. #1
    Member User Gallery
    Join Date
    Jul 2005
    Location
    Moscow, Russia
    Age
    33
    Posts
    92

    Default 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!!!
    Attached Files Attached Files
    Last edited by LeXuSMalus; 09-02-07 at 05:32 AM.

  2. #2
    Senior Member User Gallery
    Join Date
    Apr 2006
    Location
    Luzern_Switzerland
    Age
    49
    Posts
    391

    Default

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

    Greets

    Roland

  3. #3
    Moderator User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    8,596

    Default

    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.ph..._Memory_Blocks

  4. #4
    Senior Member User Gallery
    Join Date
    May 2007
    Posts
    309

    Default

    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!





    WailingMonkey

  5. #5
    Senior Member User Gallery
    Join Date
    Jun 2007
    Posts
    188

    Default Could't be happier!!

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

  6. #6
    Senior Member User Gallery
    Join Date
    Feb 2002
    Location
    ohio, U.S.A
    Posts
    1,194

    Default

    This sounds very useful! I hope it works.

  7. #7
    Member User Gallery
    Join Date
    Jul 2005
    Location
    Moscow, Russia
    Age
    33
    Posts
    92

    Default

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

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


  8. #8
    Senior Member User Gallery
    Join Date
    May 2007
    Posts
    309

    Default

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



    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

  9. #9
    Member User Gallery
    Join Date
    Jul 2005
    Location
    Moscow, Russia
    Age
    33
    Posts
    92

    Default

    Oh, sorry. I miss one global variable.
    I fix it
    thnx WailingMonkey
    Action Hero - NewBornHero
    LeXuSMalus Works
    BlendShapes Tool for Unity3D

    lexusmalus@gmail.com

    ***1047;***1072;***1042;***1044;***1042;...

  10. #10
    Senior Member User Gallery
    Join Date
    May 2007
    Posts
    309

    Default

    nope....thank you!

    everything's all werkin fine now.

    great job!


    WailingMonkey

  11. #11
    Member User Gallery
    Join Date
    Apr 2007
    Posts
    39

    Default

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

  12. #12
    Member User Gallery
    Join Date
    Dec 2008
    Posts
    79

    Smile

    Hey!

    What about a mac version?

  13. #13
    Member User Gallery
    Join Date
    Jul 2005
    Location
    Moscow, Russia
    Age
    33
    Posts
    92

    Default

    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.
    Action Hero - NewBornHero
    LeXuSMalus Works
    BlendShapes Tool for Unity3D

    lexusmalus@gmail.com

    ***1047;***1072;***1042;***1044;***1042;...

  14. #14
    Member User Gallery
    Join Date
    Dec 2008
    Posts
    79

    Default

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

  15. #15
    Member User Gallery
    Join Date
    Jul 2005
    Location
    Moscow, Russia
    Age
    33
    Posts
    92

    Default

    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
    Action Hero - NewBornHero
    LeXuSMalus Works
    BlendShapes Tool for Unity3D

    lexusmalus@gmail.com

    ***1047;***1072;***1042;***1044;***1042;...

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •