Page 1 of 1

Custom properties export for Collada

Posted: Fri Sep 24, 2010 6:16 pm
by Myrmecophagavir
I was surprised to see custom properties on objects aren't exported to Collada. Seems a natural fit for the <extra> elements. Does anyone have any views on how these should be best laid out? Where is it best to request such a feature?

Posted: Tue Sep 28, 2010 6:27 pm
by Myrmecophagavir
OK, how about something like this:

Code: Select all

<node id="Node_1" type="NODE">
  <translate sid="location">-0.639887 -0.7271613 4.013313</translate>
  <rotate sid="rotationZ">0 0 1 0</rotate>
  <rotate sid="rotationY">0 1 0 0</rotate>
  <rotate sid="rotationX">1 0 0 0</rotate>
  <scale sid="scale">1 1 1</scale>
  <extra>
    <technique profile="Blender">
      <property name="My Property" tip="Blah blah" min="0.1" max="3">0.2</property>
      <property name="Foo" tip="Foobar" min="0" max="1">0.5</property>
    </technique>
  </extra>
</node>
Does that seem reasonable? It's easy enough to parse when using the Collada DOM, for instance. I'm not sure exactly what the "tips" are supposed to be, are they just there to allow string values associated with each property in addition to numbers?

Posted: Wed Apr 27, 2011 2:09 pm
by rboerdijk
Just tried it in 2.57 - and it doesn't export it. Found this thread while looking for if it's possible. Would be a nice feature indeed.

Posted: Wed Apr 27, 2011 2:16 pm
by Myrmecophagavir
Hi rboerdijk! I mentioned this to one of the developers while we were talking about other Collada issues, after I got no replies here. It sounded like he was interested, though evidently lots of other stuff came up first. There was apparently a group of people working on Collada stuff but they never even replied to my emails. I was tempted to add the feature myself, but I switched what I was working on and don't have an immediate need for this now.

However, a recent post on the Blender developer blog mentioned one of the interns was going to be focusing on Collada. I'm hoping this issue has been scheduled along with the other obvious omissions, though the blog post sadly only mentions animation...

Posted: Tue May 24, 2011 8:57 am
by MaxDZ8
Hello, I am using 2.57.1.
I see collada still does not export properties.
I wish the feature could be considered, it would consistently streamline asset pipeline.

So far, I have been experimenting with putting everything in the object name but this is a very dirty solution and it is incompatible with some more advanced features in the proprietary solution I am using.

Ideally, I would like a way to explicitly export properties for other formats but I guess that's just not feasible.

On TODO

Posted: Mon Jun 27, 2011 4:57 pm
by jesterKing
Hi, exporting custom properties is on my todo list.

/Nathan

Posted: Mon Jun 27, 2011 5:53 pm
by MaxDZ8
This is good news! Thank you very much!

Posted: Wed Jun 29, 2011 4:31 pm
by mslinklater
I too would very much to see this added 8). I'm using Collada as my intermediate data format and the lack of custom property support added to the tiny object name limit is really hurting...

Posted: Tue Oct 18, 2011 9:01 am
by MaxDZ8
Uh uh... :cry:
I've been looking at the 2.58, 2.58a and 2.59 changelog... and ... perhaps I've missed this feature.
I'll look into in the the next few days.

I am reviving this thread on purpose.

Posted: Thu Nov 10, 2011 12:34 pm
by mdias
I also miss this feature a lot.