UkooLabs / FBXSharpie

FBX reader and writer for .NET
29 stars 4 forks source link

How to add FbxNode properties? #10

Open youarebritish opened 4 years ago

youarebritish commented 4 years ago

As far as I can tell, none of the Token constructors are exposed, so it's not clear to me how to use FbxNode.AddProperty. What is the intended method of adding properties?

UkooLabs commented 4 years ago

@youarebritish how did you know I’m British, although been living in canada 7 years now :)

This repo is a overhaul of someone else’s work and what I’ve been working on mainly is the loading / saving / optimization / improvement side of things. I’ve been working towards goal of loading one format Version and then being able to Save as a diff version.

Once that work is done I want to start creating classes for each of the node types so becomes easier for user to add a camera etc

The more I understand what users other than my self would like from library the more I can focus my efforts in appropriate directions as the library grows.

Unfortunately I’ve not looked into adding properties etc yet

I hope that briefly explains where I am at at the moment.

youarebritish commented 4 years ago

C# libraries which can write FBX documents are few and far between, and this appears to be the most modern one I could find. I was able to add properties by making the Token subclasses public. If that's not the intended workflow, it was the fix most apparent to me.

UkooLabs commented 4 years ago

@youarebritish cool, will look into making them public for now. Out of interest if you don’t mind me asking, what do you use the writing features for / use of library?

youarebritish commented 4 years ago

I'm working on some game modding tools to convert to and from proprietary model formats.

UkooLabs commented 4 years ago

@youarebritish just started work on project full steam now, and apart from fixing some bugs, have now made the tokens public