Jump to content


Point Instancing Question


  • Please log in to reply
3 replies to this topic

#1 StarfishRap

StarfishRap

    Peon

  • Members
  • Pip
  • 22 posts
  • Joined: 05-February 11
  • Location:Singapore
  • Name:rap  

Posted 12 June 2012 - 01:49 AM

Hi guys,

I'm trying to get my point instancing to do like every 6 points instance obj1, and obj2 and so on.

Screenshot.png

The goal is say user could define point 0-6 to be using "/obj/geo1/" and 7-12 using "/obj/geo2/".

Hope you get what I mean.

Thanks!

#2 sadhu

sadhu

    Initiate

  • Members
  • PipPip
  • 172 posts
  • Joined: 09-July 09
  • Location:Mumbai, India
  • Name:Sandeep Doshi

Posted 12 June 2012 - 02:42 AM

set the value of instance = /obj/geo`trunc($PT/7)`
Is this is what you want?

#3 Netvudu

Netvudu

    Houdini Master

  • Members
  • PipPipPipPip
  • 766 posts
  • Joined: 24-May 06
  • Location:Barcelona, Spain
  • Name:Javier Meroño

Posted 12 June 2012 - 02:53 AM

yup.

/obj/geo`int($PT/7)` should also work.

Edited by Netvudu, 12 June 2012 - 04:51 AM.


#4 StarfishRap

StarfishRap

    Peon

  • Members
  • Pip
  • 22 posts
  • Joined: 05-February 11
  • Location:Singapore
  • Name:rap  

Posted 12 June 2012 - 06:42 AM

Thanks for the replies guys!

What Netvudu mentioned is what I'm looking for.

But the trunc method is also pretty useful for other purposes

Thank you so much!

I've been over thinking, tried group range, for each etc...

Edited by StarfishRap, 12 June 2012 - 06:45 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users