PDA

View Full Version : How to set execute coffee tag with a user data in xpresso?


ecore
09-19-2008, 10:05 AM
Hi, sorry for the stupid question first, i'm very poor in coffee so...:blush:
I add a coffee tag with a command ID like this:
main(doc,op)
{
CallCommand(1019944); // Use IK
}
then i want to execute this coffee via a null object's user data in xpresso, i have no idea how to make this, a flie attached below.
Appreciate your help very much.

Joe

Per-Anders
09-19-2008, 05:06 PM
Use a COFFEE node rather than a COFFEE tag, that way you have direct control within xpresso using the on port and it executes with the tree rather than in a different expression execution pass. If you absolutely must use a tag then you'd check the userdata has been set by the xpresso in the tag using an if statement, if it has execute your code and set the parameter back to off once done.

ecore
09-20-2008, 01:37 AM
Thanks for you help, I add this code in a COFFEE node and execute it in expression editor but not working, I must missed something. Should I do something with the COFFEE node output port? The flie attached.
Thank you.

CGTalk Moderation
09-20-2008, 01:37 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.