<?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[BaseObject.SetModelingAxis(self, m) Not Working]]></title><description><![CDATA[<p dir="auto">Hi, is there any example about BaseObject.SetModelingAxis(self, m)? I just wanna move and rotate the model's axis via script, and here is my script in python tag<img src="https://developers.maxon.net/forum/assets/uploads/files/1655613131230-3ca30230-bbf0-470d-9a1c-317c9332481c-image-resized.png" alt="3ca30230-bbf0-470d-9a1c-317c9332481c-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://developers.maxon.net/forum/topic/14088/baseobject-setmodelingaxis-self-m-not-working</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 20:58:09 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/14088.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 19 Jun 2022 04:32:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BaseObject.SetModelingAxis(self, m) Not Working on Wed, 06 Jul 2022 13:18:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">We do not provide "on demande" script. We are here to share the knowledge and help you to find the information you need, but you must learn how to code and learn how some principales works.</p>
<p dir="auto">I provided you a thread where Ferdinand is explaining how it works to move an object to another position. We have <a href="https://github.com/PluginCafe/cinema4d_py_sdk_extended/blob/master/scripts/04_3d_concepts/modeling/geometry/operation_transfer_axis_s26.py" target="_blank" rel="noopener noreferrer nofollow ugc">a new example in our github repository</a> that will help you to understand how it is done.</p>
<p dir="auto">In your case, there is no function that is doing that. You must move the object's axis at the position (0, 0, 0) and move the points at the place they were. It is a two steps operation.</p>
<p dir="auto">Cheers,<br />
Manuel</p>
]]></description><link>http://developers.maxon.net/forum/post/69455</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/69455</guid><dc:creator><![CDATA[Manuel]]></dc:creator><pubDate>Wed, 06 Jul 2022 13:18:58 GMT</pubDate></item><item><title><![CDATA[Reply to BaseObject.SetModelingAxis(self, m) Not Working on Tue, 05 Jul 2022 13:10:03 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the script but I just want the axes to change to 0,0,0 and the object to keep the original orientation.</p>
]]></description><link>http://developers.maxon.net/forum/post/69448</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/69448</guid><dc:creator><![CDATA[WDP]]></dc:creator><pubDate>Tue, 05 Jul 2022 13:10:03 GMT</pubDate></item><item><title><![CDATA[Reply to BaseObject.SetModelingAxis(self, m) Not Working on Mon, 20 Jun 2022 09:15:34 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">as <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/cairyn">@<bdi>Cairyn</bdi></a> said the function <code>SetModelingAxis</code> purpose is to change the modeling axis for some modeling tools only. (Move, Rotate, Scale...?) To see the effect of that function, you must define the axis to free first.</p>
<p dir="auto">But, maybe you were expecting this function to move the axis of the object itself. There is no function to do so. You can only move the object axis itself. That will also move the points of the object. Then, you need to move all the points of the object to the original place.</p>
<p dir="auto"><a href="https://developers.maxon.net/forum/topic/13745/how-to-center-the-axis-of-objects/4" target="_blank" rel="noopener noreferrer nofollow ugc">In this thread</a>, you will find <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ferdinand">@<bdi>ferdinand</bdi></a> explaining how this works and how to move back the points at their original  position.</p>
<p dir="auto">I would also point to <a href="https://developers.maxon.net/docs/py/2023_2/manuals/data_algorithms/classic_api/matrix.html?highlight=matrix" target="_blank" rel="noopener noreferrer nofollow ugc">our matrix manual</a> to understand how they are used.</p>
<p dir="auto">If you just want to move the object, you can use <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d/C4DAtom/GeListNode/BaseList2D/BaseObject/index.html?highlight=setmg#BaseObject.SetMg" target="_blank" rel="noopener noreferrer nofollow ugc">SetMg</a>, <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d/C4DAtom/GeListNode/BaseList2D/BaseObject/index.html?highlight=setrelpos#BaseObject.SetRelPos" target="_blank" rel="noopener noreferrer nofollow ugc">SetRelPos</a>, <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d/C4DAtom/GeListNode/BaseList2D/BaseObject/index.html?highlight=setrelpos#BaseObject.SetAbsPos" target="_blank" rel="noopener noreferrer nofollow ugc">SetAbsPos</a>, <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d/C4DAtom/GeListNode/BaseList2D/BaseObject/index.html?highlight=setrelpos#BaseObject.SetFrozenPos" target="_blank" rel="noopener noreferrer nofollow ugc">SetFrozenPos</a>. There are also functions to define Relative, Absolute or Frozen rotation. SetRelRot..etc</p>
<pre><code># Define an object's position using matrices.
def main() -&gt; None:
    m = c4d.Matrix()
    m.off = c4d.Vector(120, 0, 0)
    op.SetMg(m)
    c4d.EventAdd()
</code></pre>
<p dir="auto">Cheers,<br />
Manuel</p>
]]></description><link>http://developers.maxon.net/forum/post/69323</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/69323</guid><dc:creator><![CDATA[Manuel]]></dc:creator><pubDate>Mon, 20 Jun 2022 09:15:34 GMT</pubDate></item><item><title><![CDATA[Reply to BaseObject.SetModelingAxis(self, m) Not Working on Sun, 19 Jun 2022 07:28:24 GMT]]></title><description><![CDATA[<p dir="auto">The Tool settings must set the Axis to Free (under Modeling Axis), so the change of the modeling axis has any visible effect.<br />
If you do that, you will see that the tag affects the modeling axis... go to Polygon Mode, Axis Mode, move the modeling axis, and it snaps back to the origin.</p>
<p dir="auto">The more interesting question would be why you'd want to change the tool setting in a tag? What's the purpose?</p>
<p dir="auto">(Also, please include the full scene, not just a screenshot, so the Maxon people don't have to re-type everything...)</p>
]]></description><link>http://developers.maxon.net/forum/post/69318</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/69318</guid><dc:creator><![CDATA[Cairyn]]></dc:creator><pubDate>Sun, 19 Jun 2022 07:28:24 GMT</pubDate></item></channel></rss>