Itoo Software Forum

Author Topic: “XVertexType”question  (Read 13830 times)

QN1156

  • Newbie
  • *
  • Posts: 43
“XVertexType”question
« on: October 14, 2024, 05:17:41 am »
I want to know if I can perform selection operations through different types of “XVertexType”.  I have tried unsuccessfully. Sometimes this operation is required.

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2960
Re: “XVertexType”question
« Reply #1 on: October 14, 2024, 09:03:23 am »
Hi,

I'm sorry to hear you're having trouble with it. The description for XVertexType should say (we'll fix): 'Type of current X Spline vertex (1 = Corner, 2 = Bezier, 3 = Bezier-Corner, 4 = Smooth).' instead of the current: 'Type of current X Spline vertex (0 = Smooth, 1 = Corner, 2 = Bezier, 3 = Bezier-Corner).'"

In your case, using the
Code: [Select]
return if(XVertexType==4, 1, 2);should do the trick.

I hope that helps.

Best regards,

QN1156

  • Newbie
  • *
  • Posts: 43
Re: “XVertexType”question
« Reply #2 on: October 14, 2024, 09:44:48 am »
Thanks !  :)