<?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[Point selection under specific parameters]]></title><description><![CDATA[<p dir="auto"><em>On 17/08/2016 at 12:43, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hello,</p>
<p dir="auto">I'm trying to figure out a way to make a point selection in an object based on a parameter and I thought it could be achieved with python. For example: I have a scene with and object and a light and I want to select only the points in my object that are being hit by the light. Is this possible?</p>
<p dir="auto">Thank you all.</p>
]]></description><link>http://developers.maxon.net/forum/topic/9652/12979_point-selection-under-specific-parameters</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 09:40:08 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/9652.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 May 2018 16:21:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Point selection under specific parameters on Thu, 10 May 2018 16:21:05 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 18/08/2016 at 03:15, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hi,</p>
<p dir="auto">welcome to the Plugin Café forums <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":slightly_smiling_face:" alt="🙂" /></p>
<p dir="auto">We are not sure, if you are looking for somebody to develop such a plugin for you (as the chosen sub-forum suggests) or if you are seeking advice on how to achieve something like this yourself?</p>
<p dir="auto">In the later case, I'd move your thread into the Python sub-forum, just let me know.</p>
<p dir="auto">If anybody wants to dive into this, here are a few infos to start with:<br />
Selecting points of a <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d/C4DAtom/GeListNode/BaseList2D/BaseObject/PointObject/PolygonObject/index.html#c4d.PolygonObject" target="_blank" rel="noopener noreferrer nofollow ugc">PolygonObject</a> is just a matter of editing the selection <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d/BaseSelect/index.html#c4d.BaseSelect" target="_blank" rel="noopener noreferrer nofollow ugc">BaseSelect</a>, retrieved by <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d/C4DAtom/GeListNode/BaseList2D/BaseObject/PointObject/index.html?highlight=pointobject#PointObject.GetPointS" target="_blank" rel="noopener noreferrer nofollow ugc">GetPointS()</a> from a <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d/C4DAtom/GeListNode/BaseList2D/BaseObject/PointObject/index.html?highlight=pointobject" target="_blank" rel="noopener noreferrer nofollow ugc">PointObject</a> (where the PolygonObject is derived from).</p>
<p dir="auto">The harder part is of course finding the points to select.</p>
<p dir="auto">The simplest (but in the end not entirely correct for all shapes of objects) solution would be to just check the normals (either poly or vertex) are facing the light. <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d/C4DAtom/GeListNode/BaseList2D/BaseTag/VariableTag/NormalTag/index.html?highlight=normaltag" target="_blank" rel="noopener noreferrer nofollow ugc">NormalTag</a> or CalcFaceNormal() (which is unfortunately missing in Python currently) would be start points here. There's also a <a href="https://developers.maxon.net/docs/cpp/2023_2/page_manual_normaltag.html" target="_blank" rel="noopener noreferrer nofollow ugc">manual</a> about the NormalTag in our C++ documentation.</p>
<p dir="auto">In order to get a more correct solution (like hard shadows, including selfshadowing and occlusion by other objects) it can get way more complex. I'd start looking into the <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d.utils/GeRayCollider/index.html" target="_blank" rel="noopener noreferrer nofollow ugc">GeRayCollider</a> for this.</p>
]]></description><link>http://developers.maxon.net/forum/post/49785</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/49785</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Thu, 10 May 2018 16:21:05 GMT</pubDate></item></channel></rss>