<?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[Cloner with multi-instance]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">I want to support to fully support multi-instances in my render engine, but I find some difficulties with cloners.<br />
I transfer the cloner data into my engine by reading the Cache. The problem is that the multi instances that exist inside the cloner have the parameter INSTANCEOBJECT_MULTIPOSITIONINPUT empty.<br />
How can I get the multi instance positions from the cloner ?</p>
<p dir="auto">Thank you for your time !</p>
]]></description><link>http://developers.maxon.net/forum/topic/11823/cloner-with-multi-instance</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 12:45:08 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/11823.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Sep 2019 08:32:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cloner with multi-instance on Mon, 07 Oct 2019 09:20:46 GMT]]></title><description><![CDATA[<p dir="auto">hello,</p>
<p dir="auto">without further addition on your part, this thread will be considered as solved tomorrow.</p>
<p dir="auto">Cheers,<br />
Manuel.</p>
]]></description><link>http://developers.maxon.net/forum/post/59802</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/59802</guid><dc:creator><![CDATA[Manuel]]></dc:creator><pubDate>Mon, 07 Oct 2019 09:20:46 GMT</pubDate></item><item><title><![CDATA[Reply to Cloner with multi-instance on Mon, 23 Sep 2019 10:16:29 GMT]]></title><description><![CDATA[<p dir="auto">hello,</p>
<p dir="auto">I'm not sure if you are talking about a <code>Mograph Cloner</code> or an <code>Instance</code> with Instance Mode set to Multi-Instance.</p>
<p dir="auto">For a Cloner Object you can retrieve the matrices inside the MoData like this</p>
<pre><code>        BaseObject *mographObj = doc-&gt;GetActiveObject();
	if (mographObj == nullptr)
		return maxon::NullptrError(MAXON_SOURCE_LOCATION);


	BaseTag *tag = mographObj-&gt;GetTag(ID_MOTAGDATA);
	if (tag == nullptr)
		return maxon::NullptrError(MAXON_SOURCE_LOCATION);

	// populate the GetMoDataMessage instance by sending a MSG_GET_MODATA
	GetMoDataMessage modataMsg;
	if (!tag-&gt;Message(MSG_GET_MODATA, &amp;modataMsg))
		return maxon::UnexpectedError(MAXON_SOURCE_LOCATION);

	if (!modataMsg.modata)
		return maxon::UnexpectedError(MAXON_SOURCE_LOCATION);

	
	// access the MoData from the returned GetMoDataMessage and check its validity
	MoData *moData = modataMsg.modata;
	if (!moData)
		return maxon::NullptrError(MAXON_SOURCE_LOCATION);

	// retrieve the number of Matrix items as well as the array containing the matrix for each of them
	maxon::Int32 matrixItemsCnt = moData-&gt;GetCount();
	maxon::Matrix* itemsMtxArray = static_cast&lt;maxon::Matrix*&gt;(moData-&gt;GetArray(MODATA_MATRIX));
</code></pre>
<p dir="auto">If you are using An InstanceObject you can check <a href="https://developers.maxon.net/docs/cpp/2023_2/page_manual_instanceobject.html#page_manual_instanceobject_instances" target="_blank" rel="noopener noreferrer nofollow ugc">our manual</a> .<br />
As <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/fwilleke80">@<bdi>fwilleke80</bdi></a> said you have <code>GetInstanceMatrices</code> or you can read the multi-instanceData (example in the manual)</p>
<p dir="auto">Cheers,<br />
Manuel.</p>
]]></description><link>http://developers.maxon.net/forum/post/59550</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/59550</guid><dc:creator><![CDATA[Manuel]]></dc:creator><pubDate>Mon, 23 Sep 2019 10:16:29 GMT</pubDate></item><item><title><![CDATA[Reply to Cloner with multi-instance on Mon, 23 Sep 2019 08:58:35 GMT]]></title><description><![CDATA[<p dir="auto">You can get the array with matrices using this member function:</p>
<pre><code>const maxon::BaseArray&lt;Matrix&gt;* InstanceObject::GetInstanceMatrices() const
</code></pre>
<p dir="auto">Cheers,<br />
Frank</p>
]]></description><link>http://developers.maxon.net/forum/post/59539</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/59539</guid><dc:creator><![CDATA[fwilleke80]]></dc:creator><pubDate>Mon, 23 Sep 2019 08:58:35 GMT</pubDate></item></channel></rss>