Python classes for transform handles

   2500   4   4
User Avatar
Member
24 posts
Joined: 4月 2017
Offline
Hi
Can you set transforms handle as persistent with python?
Havent found anything in docs, forum searches gave me old posts from 2013
where ppl suggested using hscript as it wasnt yet implemented to hou
library. Any info about the current situation?
Edited by kojala - 2018年2月22日 10:44:48
User Avatar
Member
24 posts
Joined: 4月 2017
Offline
And Im having hard time getting any of the hscript/handle related
commands to work and do the job that they are supposed to.
Tried pomadd, pomset
User Avatar
Member
24 posts
Joined: 4月 2017
Offline
ok, got things working with following python/hscript:
node = hou.node('../test_tr')
name = 'Transformer: '+node.path()
hou.hscript('pomadd "'+name+'" xform')
hou.hscript('pomattach "'+name+'" '+node.path()+' tx:tx ty:ty tz:tz')
User Avatar
Member
767 posts
Joined: 4月 2014
Offline
kojala
Hi
Can you set transforms handle as persistent with python?
Havent found anything in docs, forum searches gave me old posts from 2013
where ppl suggested using hscript as it wasnt yet implemented to hou
library. Any info about the current situation?

What do you mean handle as persistent; whereas the handle for the object never disappears ?
Edited by _Christopher_ - 2018年2月23日 10:52:44
【T】【C】【S】
User Avatar
Member
24 posts
Joined: 4月 2017
Offline
When you select for an example a transform node, you can see its handle in the viewport, but
if you have two transforms coming from a box node and then you merge them together, when you select the
merge node, you see no transform handles. But while selecting a transform you go on top of it (in the viewport)
and click the right mouse button, you see Persistent checkbox there, enable that and your handle is visible even
if you select the merge node. Make both transforms handles persistent then you can select the merge and you see both handles at the same time, no need to select them trough network editor.
Edited by kojala - 2018年2月26日 05:35:02
  • Quick Links