Jump to content

Accessing GMF properties


L B
 Share

Recommended Posts

I'm currently studying the GMF format structure and SDK to create my own tools for it. My main concern is to edit the material name, although this is a key (property) in the structure.

 

From the Wiki:

?				GMF_SURFACE		surface block
?				5			number of kids
?				0			block size

92					GMF_PROPERTIES		properties block
				0			number of kids
				36			block size
				1			number of properties
				"material"		property 1 name
				"concrete01"		property 1 value

 

Through the GMF SDK, GMF_PROPERTIES cannot be accessed (not a class) and doesn't have any command attached to it. I'm looking for a way to get something like:

string GMFEntityGetProperty(string name);

 

And eventually:

void GMFEntitySetProperty(string name);

 

I think this shouldn't be too hard to add, although I know Josh is busy, but perhaps there is another way of doing it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...