so basically imagine you have a human (polygon) character and you select a
vert on one of the legs. I want to know if it is possible to write a script
which, given a specific vector, can analyse the (contiguous) cross section
of the surface at that point.

With a little trickery, you can. :)

   1. On the target mesh, use Cut Faces Tool to generate the contiguous edge
   2. Convert generated edge-loop to NURBS, with a degree of 1
   3. Attach any geometry on a Motion-path, the geo will animate along the
   curve
   4. Create a Animation Snapshot of the geometry, you’ll get one mesh at
   each frame
   5. Delete shape from the transform of the mesh
   6. Create locator
   7. Parent locator shape to transform
   8. Delete Cut Faces history from target mesh

Works with polygonal surfaces of any complexity and should compute
relatively quickly, given you don’t need too many locators (1000+).

Step 3-7 can be further optimised if you instead utilise the
nearestPointOnCurve
<http://help.autodesk.com/cloudhelp/2015/ENU/Maya-Tech-Docs/Nodes/nearestPointOnCurve.html>
node to lookup the position along the curve and create the locators by
hand. That should give you near-real-time performance. As a next step, you
could potentially start looking at utilising the Cut Faces manipulator to
run your script interactively.

Good luck!

Best,
Marcus

On 16 October 2014 17:30, <[email protected]> wrote:

cool yeah, i have a little script that can fire a ray in a specific
> direction. Have no idea how i can fire a ray in every direction in a
> circular motion though ha,
>
> will investigate, thanks,
> Sam
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/38699b06-edbf-448f-838d-c5ff8f8e7ea4%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
​
-- 
*Marcus Ottosson*
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOD5Pte%2B%3D-%2Bby466SRpQAVCr55iKdkMS28j42ocbFWDiHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to