ZBrushCentral

NEW !- Digit's Widget Animation Script Version 3.0

Here is the first release of the animation script that I have been working on. I used ZSpin.txt as a basis for it. I am planning alot more functionality for it once I get past a couple of problems.

I don’t have a animation gif program so I have made an example on flash that you can see here
Animation Test

Right now it only does one color and only the basic 3D tools, Cube, Cylinder, etc…
here is the interface

There is a problem, which I will ask Davey in a separate post in selecting each object. So first I will tell you what you must do to use multiple but different objects.

Please determine what objects you wish to use and place them in the visible slots of the Tool menu as shown. I.E. click snake hook brush and replace it’s position with the object of your choice. When all of your objects that you wish to use are up front then you can use them for animation.

How to Use

  1. Enter the number of rotations
  2. Select and position your first object
    3, Select Rotation Axis XY or Z with the switches provided.
  3. Enter the Starting and Ending Rotation Angle in the Sliders (-180 to 180)
  4. Press “GetInfo” to record the data for this object.
  5. Repeat steps 2 thru 5 for each object you wish to animate up to 5 presently. Make sure the empty slots have thier selections disabled
  6. To preview without actually creating images press the “Preview without Saving” button
  7. When you are satisfied create the images by pressing “Execute and Export Images”. A dialog box will appear and ask you the basename of the image, example enter “Anitest”, you can also navigate to a desirable directory to place the images. In the dialog box you can select either “PSD” or “BMP” format. If your animation software can use BMP then use that so you won’t have to convert the PSD files in another program.

That’s about it, sit back and watch the show.

I have alot of things I want to do with this script so stay tuned for enhancements

Hey Digits! Too Cool! :+1: :+1: :+1:

But can we try it out now? :smiley: Or do we have to wait?

try this link , Vikki! (but take care: at z-place it reads: if you are brave, get the test script here… :D)

Digits: your Flash-sample is FANTASTICO! now i’m gonna give it a try myself…

  • juandel

Opps! Boy what a dummy I am :slight_smile: Forgot to include it! Thanks Juandel for tracking it down on my site!

animationtest.txt

Thanks Juandel for the link!

Digits,
This is great! I love it. It works perfectly in my testing so now I’ll get serious. hehe!

Thanks for creating this and sharing it!

:smiley:

Digits, you’re da mon! :smiley:
have had much better results within a few seconds, but at an unreasonable size… ahm… any imagereadyusers out there? i forgot how to get the background transparent - any hints to achieve that would be mucho appreciated! :smiley:

  • juandel

Cool Script Digits! :slight_smile:
First try with it: (Hmmm, nasty ol’ Photo-Paint made it slow, and the transperant BG didn’t work :roll_eyes: )

I really look forward to the enhancements you come up with! :slight_smile:

(BTW, I’ve finaly had some time to play with DWidgets, they just get better and better, great job with them! :+1: )
:slight_smile:

that’s too cool, Muvlo! WOW!

Wow! nice work peoples! Since Davey has supplied the answer to a problem I was having I have posted Version 1.2 on my website and here
animationtest.txt

You are now able to use any tool, user made or basic without fear of crashing or worrying where it is in the tool pallette

It will remember the color of the object

I added a recall button to replace the object in it’s original spot so that you can adjust it further.

I have made more examples in flash here

Animation Examples

in the last two I used the Magic marker tool to make a ring with a ball on it, consider them large electrons :slight_smile:

I gotta go, but feel free to ask any questions

Happy animating!

Thanks for the compliment Junadel. :slight_smile:
Digits, you have created an addictive script! I’m sure it will only get more so.
Anyway, for now I’ve put together Winged’s machine and had an unexpected space trip…

:wink:

Small update to fix color bug and to add Material Recall. Now your objects can all have a different color and material which will be recalled during processing. Much more to come!

animationtest.txt

I can definately see that I’ll have fun
playing with this one, thanks Digit. Just
downloaded it and spent 45 minutes just
checking it out and playing around a bit.
Wish it wasn’t getting so late :slight_smile:

just a few hours sleep this side of the planet and what’s for breakfast at Digit’s Electronic Cafe? a few new superduper animations and an utterly fantastico version of the script. yummy! (i will have the later for dinner, though). thank you, Digits! :smiley:

  • juandel

I realize it has only been about 3 hours since my last update but, tuff!

I have added Movement, Scaling and Rotation to the script as well as color and material selection of objects. I think it is alot easier to use as well because you set only the beginning and ending position, scaling and rotation. This is all done with interpolation. I haven’t had time yet to completely test but I hope the interpolation of the rotation will work satisfactory. Please report any problems.

[img]http://www2.zbrushcentral.com/zbc_uploads0/user_image-1000097738onz.jpg[/img]
  1. Select and object or user tool
  2. Select color and material
  3. Position, Scale and Set beginning Rotation Angle of object.
  4. Press appropriate GetStart button
  5. Position, Scale and Set Ending Rotation Angle of Object
  6. Press appropriate GetEnd Button
  7. Repeat Steps 1 to 6 for up to 5 objects
  8. Press Preview to view without image generation
  9. Press Execute button and select base name for image series, either bmp or psd type.
    10 use your favorite animation program to assemble animation

Get the script here

Digits_Widgets_Animate.txt

Check out my latest test animations in Flash here
Animation Test Page

Just added Best Render Mode
9/10/01 6:40 PST Fixed bug in Best Render mode/
More to come!

Digits! You wonderful man!! You God! You are so damn … damn … damn-cool!!!
ZBrush turns over another page in its history of its development today!

I’ll get to work building a statue of you today to put amongst the other statues of Pixolator, Davey, etc.

September 9th. Saint-Digits-Day!
:+1: :+1: :+1: :+1: :+1:

I knew it! What a great script! Hats off to you and the work you do
-kaz

Welcome to Digits Widgets Animation Version 3.0. It is starting to come together very nicely, in fact I have been so busy fiddling with it I haven’t really had a chance to actually play with it too much :slight_smile: In our last installment I had added, Movement, Color and Material. The following are new features in Version 3.0

  1. Added a Curve Point to the Interpolation. Each of the 5 allowable objects base thier movement from the Start Position to the End Position. By Selecting the “Curve” Switch you can define another Point in space to Spline that Straight Line path into a curve. Also the Size and Rotation of the Curve Point has an effect of the object as it moves from Point A to Point B

  2. Added Frame by Frame Playback - By entering the desired frame in the slider or using the “F+” and “F-” buttons you can now press “PlayFrame” to redraw the selected frame on the Canvas.

  3. Added Frame Export - When you are using the Frame Playback you can now export that single frame as a PSD or BMP file to disk

  4. Added Object Put in Frame Buttons - When you are using the Frame Playback you can recall each individual object into the scene by pressing one of the “Put” buttons. This, along with Export Frame, can allow you the user to create more complex animations by working on a frame to frame basis. Use the Movement and Size interpolation from the Start to End to move your object and work on the individual frames placing or manipulating the objects in various ways. TIP: if need be erase the object in the frame before you “Put” a new copy, then you can transform the new copy etc…

  5. Best Render - This was in the last version but I don’t think I explained it. Set this switch to on when you wish the render to use the “Best Render” mode. This will enable shadows, transparency, Material properties etc… in the exported images. Moving Shadows are Great!

Notes and Tips:
If you are working in a multilayer scene I advise that you put your animation objects in a separate layer, AND most IMPORTANT remember to SELECT that layer before you do any render. Failure to do so will cause the layer that you have selected to be cleared and drawn over with your animation objects. Just a warning as it has happened to me a couple of times. I am trying to figure out a way to set and recall a specific layer before render so that this doesn’t happen by accident.

I gave you guys Lesson One before.

Lesson Two - Using Curves

  1. Select and place an object on the canvas. Position, size and rotate to your satisfaction. Select a material.

  2. Press one of the “GetStart” buttons, you should see the “Sel_” switch get enabled. (to disable this object from the scend just unselect the “Sel_” switch)

  3. Move, size and rotate the object to the end point of your scene and press “GetEnd” button to save this spot

  4. To set a Spline Curve Point to this object select the “Curve” switch. You will notice that the “LoadPoint” and “Move” button for that object becomes enabled.

  5. Move the object in space, to where you want this Spline Curve Point to be. You may change its size, rotation as well. You can move it in Z depth as well as X and Y to create different kinds of curves. A good rule of thumb is that the Curve will extend about half way between the straight line between your starting point and your ending point out to the Spline point. So a very huge curve can be made by moving the spline point far away and a smaller curve by moving closer in perpendicular to the line.

  6. Do the same for up to four more objects by repeating steps 1 to 5.

Tips:

Use the Recall_Start and Recall_End buttons to help you place your other objects if you need to. For example. I want Object 2 to start at the same spot as Object 1. I draw object 2 on the canvas, then I make sure I have the object in Move, Scale, or Rotate and I press “RecallStart_1” the object moves to that position and I press “GetStart_2” to save that position as Obj 2’s Start. waalaa!

Say I want to use the same Curve Point on object 2 as object 1 has. Press the “Move_1” button and the object moves to that position and I then press “LoadPoint_2” to save that for Object 2.

NOTE: If I am not currently holding a object in Move, Scale or Rotation pressing the Recall buttons will draw that object, otherwise it will move, scale and rotate the object that you are holding. Hence the reason you can use the tip above. Neat eh?

Lesson Three - Using Frame by Frame

My job is to make the tool, your job is to get creative with it and come up with different ways of using it and do cool things. This feature, in my mind really starts to make this widget powerful. Here is one idea of how to use it but hopefully not the only one.

I am thinking of a guy watching a blob drop from overhead, his eyes are following the ball to the floor. When the blob hits the floor it kinda smushes.

  1. I set up a head, 2 eyes and a ball. (Head obj 1) (left Eye obj 2) (Right eye obj 3) (blob obj 4)

  2. Start Frame - The head is looking up with two eyes fixed to the blob over head.

  3. End Frame - The Head is looking down at the ball on the floor, his two eyes are still in position of the head looking down at the ball. (if we ran the animation using this setup, course I haven’t tried it yet, I think that the eye movement would be out of whack with the symmetry of the head as it Rotates down, so this is where frame editing comes to play. We will let the script do the dirty work of moving the objects smoothly and we will adjust them on each frame to be cool. Then we will export the frame to disk.

  4. Make sure that SelectFrame is 1 and press “PlayFrame”. This will draw Frame 1 on the canvas. Everything should be lined up pretty good so we press “Export Frame” and select “Blob1.bmp” for a file name

  5. Press the “F+” button to advance to Frame 2. At this point we could just press “PlayFrame” and it would draw all objects to the scene. but we can also place them individually with the “Put” buttons. so…

  6. Press “Put_1” to place the head in the scene at frame 2, since he isn’t moving in XY or Z he will appear in the same spot, however he should start to look down in Rotation a little bit.

  7. Press “Put_4” to place the blob so that we know where it is in space at this point

  8. Press “Put_2” to place the left eye, is it still in the socket if not press “W”, “S” or “R” to put the eye in transform mode and adjust it in space to please and rotate it to look at the blob.

  9. Do the same for the Right eye.

  10. Now everything is cool for frame two so we press “Export Frame” again and choose “Blob2.bmp” as a filename. (BTW probably pretty cool if you have best render on)

  11. Lets do the same procedure for (assuming
    10 frames) for the rest of the frames, we will be adjusting the eyes to the head to look at the blob (future versions will automatically do this). As the blob starts to hit the floor we can start modifying it to start to squish. Do a little modeling to make this happen.

  12. After you have done this take your Blob1 to Blob11 files into your animation program to make the gif or whatever.

Hopefully I will get a chance to try lesson 3 to see if it really works the way I envision but I ask of you to try it and post your results and report any problems you may encounter.

Like I say, I have plenty of more ideas to explore with Zscript animation, like movement of the sun, Brush stroke movement and pointers, maybe even object deformations! I will sneak in another un-official wish to Pixolator to one day have the ability to read/write a file to disk from a zscript. This way I could automatically write animation object data and recall it back as well as other amazing things.

On a side note, if you guys get good with this script using the Digits_Widgets_Interpolation should be a snap, it has alot of the same kind of stuff, so if you were having problems figuring it out in the past you might try it again.

Thanks for your support peoples, please animate! And hey look! I can put my post into Z-Place’s Thread Hall of Fame since I hit the 2 page barrier :slight_smile:

Here is the script

Digits_Widgets_Animate.txt

PS Thanks Upham! A statue would be great! And Godlike status wow! I have come a long way, shoot I was nine years old before I finally figured out my name wasn’t Goddamnit, and now I have people erecting statues of me!

i agree with upham you da man… keep z rockin around the clock digits… cant wait to see what you come up with next… zya

Wonderful wonderful wonderful Digits!
I can’t wait to give this a try!
:slight_smile: :smiley:

hey digits i was wondering if it is not to much to ask.,that you put together a pdf.file for easy viewing of your newly found discovery on animation in zbrush and maybe you can post it for downloading please… thanks