Set Note Attachment at Maximum point of curve

MOHAMMED ABDULLA T
MOHAMMED ABDULLA T Altair Community Member
edited March 2023 in Community Q&A

Hi,

Is there any command available to attach 'note' to the maximum point of the curve. I am able to attach my note at starting point of the curve. But not able to find out the location of maximum point of curve. Please see the picture for more clarification.

 

<?xml version="1.0" encoding="UTF-8"?>image.thumb.png.ecd6f5cbef75eca33ff0aa3e52492cd1.png

 

Thanks

Mohammed Abddulla T

 

Answers

  • MOHAMMED ABDULLA T
    MOHAMMED ABDULLA T Altair Community Member
    edited June 2019

    Done

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited June 2019

    Hi Mohammed

     

    I haven't done this yet, you can try:

     

    pltINote_handle SetAttachment curve

    pltINote_handle SetAttachToCurveIndex $curveID

    pltINote_handle SetAttachToPointIndex point_index

     

    to find point_index you can GetVectorHandle and from vectorHandle GetValuesList  list. Find at what index the maximum value occurs in the value list.

     

     

  • MOHAMMED ABDULLA T
    MOHAMMED ABDULLA T Altair Community Member
    edited June 2019

    Thanks Livil

     

    I got the solution :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

  • Pandurang
    Pandurang Altair Community Member
    edited July 2019

    can u share solution?

     

    Thanks PD

  • FrankSu
    FrankSu Altair Community Member
    edited March 2023

    indexofmax(c1.y)