Hi,<br><br>Yep, you're on the right track there :)<br><br>Joshua<br><br><div class="gmail_quote">On Thu, Feb 5, 2009 at 4:59 AM, Roland Hess <span dir="ltr"><<a href="mailto:me@harkyman.com">me@harkyman.com</a>></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 --<br>
<br>
Little code snippet here from the material adr conversion:<br>
<br>
case MA_IOR:<br>
return "ior";<br>
<br>
case MA_HASIZE:<br>
return "halo.size";<br>
<br>
case MA_TRANSLU:<br>
return "translucency";<br>
<br>
case MA_RAYM:<br>
return "raytrace_mirror.reflect";<br>
<br>
case MA_FRESMIR:<br>
return "raytrace_mirror.fresnel";<br>
<br>
case MA_FRESMIRI:<br>
return "raytrace_mirror.fresnel_fac";<br>
<br>
case MA_FRESTRA:<br>
return "raytrace_transparency.fresnel";<br>
<br>
case MA_FRESTRAI:<br>
return "raytrace_transparency.fresnel_fac";<br>
<br>
case MA_ADD:<br>
return "halo.add";<br>
<br>
The material rna was created with halo, ray mirror and ray transparency<br>
settings as nested structs. There weren't any examples of this sort of<br>
thing in the other conversion code, but after reading get_rna_access()<br>
and what it does, I think the above is the kind of notation we're<br>
looking for (i.e. "raytrace_mirror.fresnel_fac") that will path out to<br>
the correct rna property.<br>
<br>
I'm going to move on to the other unfinished adr blocks.<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>