Selection script in H8

   3365   0   1
User Avatar
Member
581 posts
Joined: July 2005
Offline
Hi houdiniks
I am making a character in H8 and I want to use the selection script feature included in the geometry and null OBJ operators.
My problem is that because all my geo and null operators are bellow the character node I can't get the correct paths.
My character is for example /obj/char1 .
All my nulls and geo ops are bellow this node, and there I have a geo operator that contents a font SOP, the thing I want to do is to change the font message in base the null I heve just selected.
So every null has a select script like:
opparm ./metaball_text/font1 text ( “2” )
When I am into the character this code works perfectly.
The problem is that an animator works at obj level, not into the characters and then the code fails because the script instead of being excuted at /obj/char1 is executed at /obj.
I have tried many ways to get the path to my fontSOP but because it seems I can't execute expressions in this text field I can't get it from the $SELECT_NAME and $SELECT_PATH variables.
The ovious way to ge the pathh is with the next expression:
strreplace($SELECT_PATH, $SELECT_NAME, “metaball_text”) + “/font1”
But when I put it between backticks in the text field it isn't executed. In the textport works perfectly.
Another proble is that I have tried to source an script contained in the HDA with:
source opdefobj/char?selectScript
But again don't work.
Any clues about this?
Thanks
Un saludo
Best Regards

Pablo Giménez
  • Quick Links