Hi guys!
How can I run a function defined in the “code” section of an operator
when a button of the operator is pressed??
Sebastian
Custom Operator Question (python)
2569 3 0- 3Dude
- Member
- 39 posts
- Joined: July 2010
- Offline
- rdms
- Member
- 201 posts
- Joined: July 2005
- Offline
3Dude
Hi guys!
How can I run a function defined in the “code” section of an operator
when a button of the operator is pressed??
Sebastian
Assuming you are using python and have written a function (let's say called foo) in the PythonModule under the Scripts tab …
In the Callback Script of the button parameter, you would have something like:
hou.pwd().hdaModule().foo()
And make sure you switch the Script Language from Hscript to Python (this is the button just under the Callback Script)
HTH
Cheers,
Rob
Digital Supervisor | Stargate Studios Toronto
Rob
Digital Supervisor | Stargate Studios Toronto
- 3Dude
- Member
- 39 posts
- Joined: July 2010
- Offline
- pinkcat42
- Member
- 3 posts
- Joined: Nov. 2010
- Offline
Assuming that it provides a fairly consistent bonus for every physical class in a raid, we're boosting the
raid's overall DPS by a few percent WOW Gold [storeingame.com]. Obviously, if you're
in a raid and you don't have anyone who can provide the major armor reduction debuff, Expose Armor is a
simple way to accomplish this goal Buy WOW Gold [zyy.com]. Mutilate rogues might have
problems working it into their rotations nowb Aion Gold
[storeingame.com], as they're focused on maximizing their Envenom buff uptime. Combat rogues can simply replace most
of the Eviscerates in their cycles with Expose Armor Aion Gold [gobuyaiongold.com]
. Typically, you'll be able to weave in a few Eviscerates over the course of the fight via Adrenaline Rush
and lucky Combat Potency procs.
raid's overall DPS by a few percent WOW Gold [storeingame.com]. Obviously, if you're
in a raid and you don't have anyone who can provide the major armor reduction debuff, Expose Armor is a
simple way to accomplish this goal Buy WOW Gold [zyy.com]. Mutilate rogues might have
problems working it into their rotations nowb Aion Gold
[storeingame.com], as they're focused on maximizing their Envenom buff uptime. Combat rogues can simply replace most
of the Eviscerates in their cycles with Expose Armor Aion Gold [gobuyaiongold.com]
. Typically, you'll be able to weave in a few Eviscerates over the course of the fight via Adrenaline Rush
and lucky Combat Potency procs.
-
- Quick Links