<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Thanks.<br>
<br>
I will call it blender scene exporter. <br>
<br>
I have a gui called ucp.<br>
When exporting the scene using the menu pull down or command line the parameters will be preset by ucp otherwise defaults will prevail. One button on ucp starts the scene exporter, generates the file name, which the gui can override.
<br>
<br>
Most of the gui parameters relate to naming conventions that I prefer in blender when exporting large numbers of scenes out of chimera. This improves later blender Python coding of animations such as object name hierarchies to avoid namespace collisions.<br>
<br>
I may also generate a second file with Python commands unique to the scene, that will ease manipulation in blender, perhaps some templates for key frames, transformations, and vertex color setup.<br>
<br>
Export collada out of chimera. Execute Python in blender to import collada file in blender and prep the object with baseline transformations.<br>
<br>
<br>
Matthew Dougherty<br>
National Center for Macromolecular Imaging<br>
Baylor College of Medicine<br>
=================================================<br>
=================================================<br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Tom Goddard <goddard@sonic.net><br>
<b>Sent:</b> Friday, September 25, 2015 12:36:14 PM<br>
<b>To:</b> Dougherty, Matthew T<br>
<b>Cc:</b> chimera-dev@cgl.ucsf.edu<br>
<b>Subject:</b> Re: [chimera-dev] adding an exporter</font>
<div> </div>
</div>
<div>Hi Matt,
<div class=""><br class="">
</div>
<div class=""> The registration for the Collada exporter is in the file</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>chimera/share/ExportCollada/ChimeraExtension.py</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span><a href="http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/libs/ExportCollada/ChimeraExtension.py" class="">http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/libs/ExportCollada/ChimeraExtension.py</a></div>
<div class=""><br class="">
</div>
<div class="">The ChimeraExtension.py file for each Chimera extension is imported when Chimera starts. I believe that is all that is needed to have the format appear in the File / Export Scene… menu. I don’t know how you intend to get extra input parameters
for exporting Blender Collada. None of the Chimera export formats take extra input parameters. So the Export Scene… user interface just presents a file save dialog. If you need some other GUI the easiest approach is not to use File / Export Scene…. Instead
make your own “Export Blender Collada” in the Tools / Utilities menu. To see how to do that look at some other example Chimera extension that has a Tools menu entry, like the Icosahedron tool</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span><a href="http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/libs/Icosahedron/ChimeraExtension.py" class="">http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/libs/Icosahedron/ChimeraExtension.py</a></div>
<div class=""><br class="">
</div>
<div class=""> Tom</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Sep 25, 2015, at 12:15 AM, Dougherty, Matthew T wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">I have modified the collada exporter to work with blender to the point I need to fork it off.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">I want to call it Blender, as opposed to the existing Collada exporter and overwrite that code.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">It is mostly the collada chimera exporter, but has additional UI inputs to make it better integrate with blender. </div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">How do I register it so it lists like the other scene exporters?</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Is it entirely within the existing collada code extension, or is there another call or init that needs to be made outside the collada extension directory?</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div id="Signature" class="">
<div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class="">
<div class="BodyFragment"><font size="2" class="">
<div class="PlainText">Matthew Dougherty<br class="">
National Center for Macromolecular Imaging<br class="">
Baylor College of Medicine<br class="">
</div>
</font></div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>