View Full Version : CanvasStroke parameters
shineout
07-16-01, 10:57 PM
I tried to understand the CanvasStroke command. Looking at the documentation did not help. eg what does the below means
[CanvasStroke,(ZObjStrokeV02n2=H94VDAH94VDA)]
[CanvasStroke,(ZObjStrokeV02n2=H102V118H102V118)]
Thanks
Greetings Shineout
What you are looking at is the zscript output from a recorded script.
To use the CanvasStroke call in your own Zscript that you would write it would look something like this
[VarSet,theStroke,[StrokeGetLast]] //get the last drawn stroke
[CanvasStroke,theStroke,0,0,1,1,0,0]
ZBC Moderator
07-17-01, 09:24 AM
Hi Shineout,
The information that is contained within a ZObjStroke is the H,V position of the mouse as well as tablet pressure and key press. In order to use the stroke command, you do not need to know how to actually enter the stroke data points, you simply allow ZBrush to record you brush strokes and ZBrush will create the appropriate stroke command. If, however, you do want to get better understanding of the stroke command, here is a brief explanation...
*(ZobjStroke: specifies that the following is a ZBrush stroke data
*V02n2: Specifies a version 02 stroke data with 2 data points
* H followed by a number is the H position of the cursor. value is integer and in Hex format
* h followed by a number is the H position of the cursor. value is 2 digits integer and 2 digits fraction in Hex format
* V and v are similar to the H and h and are specifying the V position
* P = Full pressure
* p= 2 digits hex pressure value (0x00 to 0xff)
*K is for keypress values.
That is a quick description of the format. If a more detailed description is
needed, let us know.
-ZuZu :)
Powered by vBulletin® Version 4.1.11 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.