You already know how to change a decal image of a character's part
method. But you were able to change only between existing registered
. It is also possible to register a brand new decal or re-register an
existing decal using a Part's
method. This method accepts two string parameters. The first one is a
decal name (like
or any other name) and the second one is a path to an actual image.
This MUST BE A FULLY QUALIFIED LOCAL PATH TO AN IMAGE ON YOUR HARD
DRIVE like "c:\\myimage.svg" (it could also be a short path to an image
in WCM character's library but you do not have direct access to these
images). Please keep in mind that
can be used only once for every character's part. If you use it more
than once then the latest instance will take precedence. When you
register a part's decal you do this for the entire scene and it has
effect from the beginning to the end of a cartoon scene. For example:
It may look like the second example is wrong because decal
is unknown, but it works the same way because it does not matter if
decal was registered before of after usage. For code readability
reasons it is recommended to register decals before usage though.
You will discover some more "Register" methods soon. They all work the
same way. They affect the entire cartoon scene and it does not matter
when they were called. The latest call takes precedence.
Also, since the scenes are function calls, the decal information is
local to a given scene and given object, thus changing a decal in
Scene1 will not affect Scene2 (much like stage actors never change
costumes in the middle of a scene, but often do so between scenes) and
will not affect another instances of the same class.
In the above example we registered a custom decal
, but it is possible to re-register existing decals, even the