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
How can I know the input geo shape is visible or not ??
7583 5 1- rtarantino
- Member
- 23 posts
- Joined: 6月 2010
- Offline
- awong
- Member
- 818 posts
- Joined: 9月 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.
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 / アンドリュー
- rtarantino
- Member
- 23 posts
- Joined: 6月 2010
- Offline
- awong
- Member
- 818 posts
- Joined: 9月 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 / アンドリュー
- rtarantino
- Member
- 23 posts
- Joined: 6月 2010
- Offline
- awong
- Member
- 818 posts
- Joined: 9月 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.
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