MASH - Random ID inside and outside of a falloff

89 views
Skip to first unread message

José Miguel Aragüés

unread,
Jun 15, 2018, 6:16:47 PM6/15/18
to maya_he3d
Hi there people;
A MASH related question:
I need to put different ID for inside and outside of a falloff node.
The tricky thing is that I have 4 different objects in the network, say 1, 2, 3 and 4.
So, I need objects 1 and 2 randomly placed outside the falloff object and 3 and 4 randomly placed inside the falloff object.
Can that be done?, because I'm strugling my head and can't find a way for it because the ID node can't have an offset in the random mode. I mean, you can put the number 4 for the random and it will take the four objects, but there is no way I can choose only the IDs 3 and 4 and place those randomly.
This is hard to explain but I hope you get my point.
Cheers!.

Ian Waters

unread,
Jun 18, 2018, 4:18:28 AM6/18/18
to maya...@googlegroups.com
The Python node is your friend here.

The attached script will do as you want.

Best,
Ian

randomInsideFalloff.py
Screen Shot 2018-06-18 at 09.15.24.png

joie

unread,
Jun 18, 2018, 4:42:33 AM6/18/18
to maya...@googlegroups.com
Hi there Ian,
You saved my day!.
I really hoped there were another way to do this, because I don't know anything about python, and even less regarding python and MASH. Yes, I know I should learn it, but, a- I don't have time for it, and b- I don't know about simple resources for idiots like me to learn.
Thanks again!.

--
You received this message because you are subscribed to a topic in the Google Groups "maya_he3d" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/maya_he3d/o318S5yLHE8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to maya_he3d+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "maya_he3d" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/maya_he3d/o318S5yLHE8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to maya_he3d+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "maya_he3d" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/maya_he3d/o318S5yLHE8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to maya_he3d+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.




--
Visita mi blog: 3djoie.blogspot.com
Reply all
Reply to author
Forward
0 new messages