Re: creating a motn file outside of motion
Re: creating a motn file outside of motion
- Subject: Re: creating a motn file outside of motion
- From: Darrin Cardani <email@hidden>
- Date: Thu, 18 Dec 2008 16:51:28 -0800
Hayden,
I took a closer look at the documentation and it looks like it
doesn't answer all of your questions. (As I said earlier, it's not as
complete as we'd like.) Here are a few more answers inline:
On Dec 18, 2008, at 4:23 PM, Hayden Young wrote:
I read that the motn file is an XML file so i've been experimenting
with it and found that there are factory tags that appear as soon as
a scene node is created.
These factory tags have UUIDs in them and they seem to come from a
constant list of UUIDs or something.
Is there a way to predict what the UUIDs will be? or do i have to
add stuff in motion to try get the factories to appear in the XML
document?
Yes, and yes. They will be constant (they are Universally Unique IDs
because we don't want them to collide with any other IDs). To figure
them out, it looks like the easiest way is to create a document
containing the various objects you want your app to create and copy
the UUIDs from there.
also, are the id attributes in most tags random numbers? or is there
a specific range that they have to be in?
I believe they generally have to be in a specific range. I'll have to
do some digging to figure this out. (Off the top of my head, I seem to
recall they have to be over 10,000, but I'm not positive.)
say for example some parameter such as color has the tag <flags>
with some four digit number while the flags for the colour
parameters are only two digit
are these numbers random (but consistent between related parameters)?
I'm not positive I understand the question. The flags should all be 32-
bit unsigned integers. Looking at them in hex will probably make them
easier to find patterns in. They should be consistent in the sense
that any given parameter has the same flags that it can set or clear.
But different objects' parameter's may have different meanings.
if i have a program to generate the motn files do i have to worry
about the flag values? what are they, and what is the difference
between foldFlags and flags?
The flags and foldFlags are generally not documented. I'll have to see
if it's safe to set them to 0 initially or leave them out. FWIW,
foldFlags will generally refer to a folder containing other
parameters, whereas the flags generally apply to the individual
parameters. Some parameters (like a color swatch or point parameter)
are actually folders of more parameters (RGB&A for color, or (x,y) for
points). I'll see what info I can find that will be of use to you.
Darrin
--
Darrin Cardani
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden