Assign scripts in Houdini that are not root level

   1759   2   2
User Avatar
Member
8 posts
Joined: Jan. 2018
Offline
Currently we can assign scripts in Houdini using an attribute to the root level of the hda in Unity. I created a test scene with two objects. One is a sphere and the other is a box.

I then attach a script inside the sphere geometry with these settings.

The script is being assigned to the root level in Unity and not on the object itself.

What we are trying to do, is get the script on the object itself. How can we assign scripts to the object itself and not the root level? Similar to the image below.



Thanks,
Glen
Edited by aig_vr - May 30, 2018 10:29:20

Attachments:
2018-05-30_10h24_20.png (19.5 KB)
2018-05-30_10h22_55.png (25.3 KB)
2018-05-30_09h57_02.png (39.9 KB)
2018-05-30_10h28_42.png (26.0 KB)

User Avatar
Member
571 posts
Joined: May 2017
Offline
The scripts should have been on the output gameobject for each part, but the current implementation attaches them to the root. I made the change to attach to the output gameobjects instead, and this should be available in tomorrow's daily build so it will just work for you. I also fixed the issue such that you don't need to add the “:MonoBehaviour” part; that was a bug.
User Avatar
Member
8 posts
Joined: Jan. 2018
Offline
Nice! Thanks, look forward to the next build.
Glen
  • Quick Links