Sorry for my lingo, I'm still getting used to houdini.
I want to constrain some text I made to my current viewport. I know in the “Look At” parameter, I can put in a path to a camera, but that is different than the default perspective viewport, and I haven't had any luck finding this in hscript or in the python docs, or just by using some houdini nodes.
Can anyone point me in the right direction here?
- fortner
constrian object to viewport
7030 9 3- o0fortner0o
- Member
- 1 posts
- Joined: July 2005
- Offline
- rdg
- Member
- 401 posts
- Joined:
- Offline
- goldfarb
- Staff
- 3455 posts
- Joined: July 2005
- Offline
- rdg
- Member
- 401 posts
- Joined:
- Offline
- Simon
- Member
- 2199 posts
- Joined: July 2005
- Online
- goldfarb
- Staff
- 3455 posts
- Joined: July 2005
- Offline
- MichaelC
- Member
- 344 posts
- Joined: July 2005
- Offline
What we were trying to do is put labels (font SOP) on locators we are importing from Maya. We thought it would be a nice feature to have the locator's label always always face the screen regardless of what camera the user was viewing the scene through (even no camera). We don't want to end up with a complex solution for this, so well probably just orient the lable to the locator's Z axis.
- goldfarb
- Staff
- 3455 posts
- Joined: July 2005
- Offline
- edward
- Member
- 7725 posts
- Joined: July 2005
- Offline
In H9, you could also just create a custom attribute and have its text displayed in the viewport. eg.
1. Put down a default null object
2. Dive inside and append a AttribCreate SOP. Set the Name to say, “label”. Set Class to Primitive. Set Type to String. Set String to say “Test”. Set the display flag on the AttribCreate SOP.
3. Hit d with your mouse in the viewer to bring up the display options.
4. Under Custom, choose “Create Attribute Text”. This creates a new custom display option.
5. Right-click on “text1” and choose Edit. Set Attribute to “label”. Hit Accept.
1. Put down a default null object
2. Dive inside and append a AttribCreate SOP. Set the Name to say, “label”. Set Class to Primitive. Set Type to String. Set String to say “Test”. Set the display flag on the AttribCreate SOP.
3. Hit d with your mouse in the viewer to bring up the display options.
4. Under Custom, choose “Create Attribute Text”. This creates a new custom display option.
5. Right-click on “text1” and choose Edit. Set Attribute to “label”. Hit Accept.
- MichaelC
- Member
- 344 posts
- Joined: July 2005
- Offline
-
- Quick Links