How can I know the input geo shape is visible or not ??

   6950   5   1
User Avatar
Member
23 posts
Joined: June 2010
Offline
My goal is if there is key for visibility inside maya, I want to use that Boolean (i guess) value for changing some value or switch inside OTL.

So far(with maya 2015), Houdini engine working pretty good but I think when any geo inside maya has 0 visibility, Maya do not calculate things for speeding up(I may be wrong about this) and so inside OTL it does not work it should be. Anyways it does not work 100% when geo has key for visibility 0 (hidden)…

I really appreciate it if there is any tips for this.

Thank you

Ryo
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
Object visibility in Maya is simply an attribute on the node. So you could try connecting the visibility attribute from your object to a parameter on the asset node, which will then drive your switch node.

The visibility of the input geometry shouldn't have an effect on what gets inputted into the asset though. It's true that Maya doesn't calculate invisible objects in some cases. However, if the object is being used (i.e. as input for an asset, and the asset is computed), it'll be computed regardless of the object's visibility.
Andrew / アンドリュー
User Avatar
Member
23 posts
Joined: June 2010
Offline
Thank you Andrew.

I will check and test with simple OTL.
So some how to get visibility value inside OTL is not possible is it?

Ryo
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
rtarantino
So some how to get visibility value inside OTL is not possible is it?

Object visibility in Maya is simply an attribute on the node. And an asset parameter is also represented as an attribute on the asset node. So you could try connecting the visibility attribute from your object to a parameter on the asset node. This will let you access the visibility inside the asset.
Andrew / アンドリュー
User Avatar
Member
23 posts
Joined: June 2010
Offline
Yeah, I know what you mean. but if I have let's say 50 to 100 geo for inputs, it's easy to set inputs path by mel or python. However it's pretty ugly to expose 100 of visibility parms to top of OTL. And I guess, so far there is no way around to do it?
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
Yeah, unfortunately, there isn't a good way right now.

Maybe you could take advantage of the fact that Houdini Engine has access to Maya's Python. This means you can access the maya.cmds Python module from inside Houdini Engine, and you can actually query various Maya states. However, accessing the Python module this way isn't an intended feature so I wouldn't recommend it unless you absolutely have to.
Andrew / アンドリュー
  • Quick Links