<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Is there any information about the script that makes ghosting mode available for bind characters?]]></title><description><![CDATA[<p dir="auto">When I was doing character animation, it was always hard because I couldn't see the mesh for the previous and later frames. I tried to create a script, but I can't find any relevant information. I'm a beginner. Can I get the necessary code or relevant information? I don't know if I used a translator to get the words across correctly. Sorry</p>
]]></description><link>http://developers.maxon.net/forum//topic/15445/is-there-any-information-about-the-script-that-makes-ghosting-mode-available-for-bind-characters</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 05:44:59 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum//topic/15445.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Mar 2024 08:24:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is there any information about the script that makes ghosting mode available for bind characters? on Wed, 27 Mar 2024 15:45:23 GMT]]></title><description><![CDATA[<p dir="auto">Okay. I'll ask the support center</p>
]]></description><link>http://developers.maxon.net/forum//post/74034</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/74034</guid><dc:creator><![CDATA[seora]]></dc:creator><pubDate>Wed, 27 Mar 2024 15:45:23 GMT</pubDate></item><item><title><![CDATA[Reply to Is there any information about the script that makes ghosting mode available for bind characters? on Wed, 27 Mar 2024 11:36:58 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/seora">@<bdi>seora</bdi></a>,</p>
<p dir="auto">I still have problems to understand what you want to do. This also sounds more and more like an end user problem to me. If you think ghosting is not working for a particular setup (you seem to hint at the fact that it does not work for Character Animation) you should contact end user support via our <a href="https://www.maxon.net/en/support-center" target="_blank" rel="noopener noreferrer nofollow ugc">Support Center</a>. SDK support is purely meant for our APIs.</p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum//post/74032</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/74032</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Wed, 27 Mar 2024 11:36:58 GMT</pubDate></item><item><title><![CDATA[Reply to Is there any information about the script that makes ghosting mode available for bind characters? on Wed, 27 Mar 2024 02:35:19 GMT]]></title><description><![CDATA[<p dir="auto">Yes, first of all, I'm sorry to confuse you with the question. and please understand that there is no written code. I'll ask you a detailed question again! Ghost mode only reacts when the key animation value is in it as shown in the picture. But what I want is the ghost mode of the waiting polygon. When I looked it up, I found that I had to script and implement it separately for this part. But I don't know how to write complicated code. Can you help me again?</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1711506393686-80223ee3-b1ee-4404-af98-6f1d76309c12-image.png" alt="image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://developers.maxon.net/forum//post/74027</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/74027</guid><dc:creator><![CDATA[seora]]></dc:creator><pubDate>Wed, 27 Mar 2024 02:35:19 GMT</pubDate></item><item><title><![CDATA[Reply to Is there any information about the script that makes ghosting mode available for bind characters? on Tue, 26 Mar 2024 13:12:10 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/seora">@<bdi>seora</bdi></a>,</p>
<p dir="auto">Welcome to the Maxon developers forum and its community, it is great to have you with us!</p>
<h4>Getting Started</h4>
<p dir="auto">Before creating your next postings, we would recommend making yourself accustomed with our forum and support procedures. You did not do anything wrong, we point all new users to these rules.</p>
<ul>
<li><a href="topic/15242/">Forum Overview</a>: Provides a broad overview of the fundamental structure and rules of this forum, such as the purpose of the different sub-forums or the fact that we will ban users who engage in hate speech or harassment.</li>
<li><a href="/topic/15244/" target="_blank" rel="noopener noreferrer nofollow ugc">Support Procedures</a>: Provides a more in detail overview of how we provide technical support for APIs here. This topic will tell you how to ask good questions and limits of our technical support.</li>
<li><a href="/topic/15243/" target="_blank" rel="noopener noreferrer nofollow ugc">Forum Features</a>: Provides an overview of the technical features of this forum, such as Markdown markup or file uploads.</li>
</ul>
<p dir="auto">It is <strong>strongly</strong> recommended to read the first two topics carefully, especially the section <a href="/topic/15244/" target="_blank" rel="noopener noreferrer nofollow ugc">Support Procedures: Asking Questions</a>.</p>
<h4>About your First Question</h4>
<p dir="auto">Without a more concrete description of what you want to do, it will be hard to help you. We also cannot write solutions for you. For all further support requests, you will have to show us the code you wrote.</p>
<p dir="auto">With that being said, and with a bit reading between the lines, here is a script which:</p>
<ul>
<li>Adds a display tag to the currently active object when there is none.</li>
<li>Enables both ghosting in the tag and the currently active viewport when it is disabled, or disables it when it is enabled.</li>
</ul>
<p dir="auto">I.e., you could use this to toggle ghosting for the currently selected object.</p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
<pre><code class="language-py">"""Demonstrates how to toggle the ghosting state of an object in Cinema 4D.

The script will toggle the ghosting state of the primary selected object in the currently active
document. If the object has no display tag, a new one will be created. If the object already has a
display tag, the script will toggle the ghosting state of the tag.

Must be run as a Script Manager script.
"""

import c4d
import mxutils

doc: c4d.documents.BaseDocument  # The currently active document.
op: c4d.BaseObject | None  # The primary selected object in `doc`. Can be `None`.

def main() -&gt; None:
    """Called by Cinema 4D when the script is being executed.
    """
    if op is None:
        c4d.StatusSetText("No object selected.")
        return
    
    # Get all display tags on the object.
    tags: list[c4d.BaseTag] = [tag for tag in op.GetTags() if tag.CheckType(c4d.Tdisplay)]

    # Select the first display tag or create a new one when there is none.
    displayTag: c4d.BaseTag = tags[0] if tags else mxutils.CheckType(op.MakeTag(c4d.Tdisplay))

    # Get the ghosting state of the display tag.
    isGhosting: bool = displayTag[c4d.ONION_USE]

    # Toggle ghosting off.
    if isGhosting:
        # Turn off ghosting by setting the `c4d.ONION_USE` parameter to `False`.
        displayTag[c4d.ONION_USE] = False

        # Alternatively, you can also remove the display tag from the object. This will be a bit 
        # cleaner as we will not leave back dormant display tags on objects. But it without further 
        # checks, we would also delete manually created display tags which might have other important
        # settings.
        # displayTag.Remove()
    # Toggle ghosting on.
    else:
        displayTag[c4d.ONION_USE] = True
        # Make sure that ghosting is also enabled in the currently active viewport.
        viewport: c4d.BaseDraw = doc.GetActiveBaseDraw()
        viewport[c4d.BASEDRAW_DISPLAYFILTER_ONION] = True
    
    c4d.EventAdd()
        
if __name__ == '__main__':
    main()
</code></pre>
]]></description><link>http://developers.maxon.net/forum//post/74023</link><guid isPermaLink="true">http://developers.maxon.net/forum//post/74023</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Tue, 26 Mar 2024 13:12:10 GMT</pubDate></item></channel></rss>