Hi,<br><br>All of the code for this can be found in blenkernel in ipo.c<br><br>What basically needs to be done, is you need to take each of the sets of switch(...){case...} blocks at the bottom of the file (in get_ipo_poin), and make a function at the top for this (named &lt;datablock&gt;_adrcodes_to_paths). <br>
Then you replace each poin= &amp;struct-&gt;somevar;&nbsp; with return &quot;some_equivalent_RNA_prop_identifier&quot;; <br>If the original setting is wrapped in RNA as an array, you need to add *array_index= #;&nbsp; before return ...&nbsp; (i.e. see ob_adrcodes_to_paths() and material_adrcodes_to_paths() for examples).<br>
<br>Some of the blocks are not completely done (i.e. objects and materials), with the unconverted adrcodes #if 0&#39;d out at the bottom of the respective functions. It would be a good starting point to try your hand at these first.<br>
<br>One more word of advice: if you see any of the old &#39;bitflag&#39; vars (&#39;mode&#39; for materials is one, &#39;lay&#39;/layer for objects is another), follow the example code for Object layers (hint, check adrcode_bitmaps_to_paths() as a good startingpoint) to see how to implement this so that they get converted properly to the new system.<br>
<br>Once you get the hang of this, it&#39;s not really as difficult as it may sound here. :)<br>Joshua<br><br><div class="gmail_quote">On Wed, Feb 4, 2009 at 4:21 AM, Roland Hess <span dir="ltr">&lt;<a href="mailto:me@harkyman.com">me@harkyman.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Joshua -- You&#39;d mentioned on irc that I could start working on fcurves<br>
for materials. I didn&#39;t think to ask at the time, but what exactly do<br>
you mean by that, from a practical standpoint? Point me to a sample from<br>
another module and I&#39;ll tackle it.<br>
<br>
Roland<br>
_______________________________________________<br>
Bf-taskforce25 mailing list<br>
<a href="mailto:Bf-taskforce25@blender.org">Bf-taskforce25@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-taskforce25" target="_blank">http://lists.blender.org/mailman/listinfo/bf-taskforce25</a><br>
</blockquote></div><br>