ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
Set color of item on transporter
Hello,
I am sending transporters with task sequences through my model and want to change the color of the item that is currently loaded, e.g. when the transporter travels over a certain network node. How to reference this correctly? Thanks a lot, Kat |
#2
|
||||
|
||||
Here is a model that changes the color of the transported item as a part of the task sequence.
color_on_waypoint.fsm Alternatively you can use network node's OnArrival trigger to get the traveler and the item as first(traveler). Code:
treenode traveler = parnode(1); treenode current = ownerobject(c); int toedge = parval(2); //the number of the edge that the traveler is going to next int fromedge = parval(3); // the number of the edge the traveler came from treenode item = first(traveler); colorteal(item); |
The Following 2 Users Say Thank You to Vadim Fooks For This Useful Post: | ||
Katharina Muller (12-07-2012) |
Tags |
color, item, node, transporter |
Thread | Thread Starter | Forum | Replies | Last Post |
Add color to GUI Panels? | JMEngelhart | Q&A | 1 | 02-16-2012 10:13 AM |
Sketchup color | mbaccalaro | Q&A | 7 | 04-11-2011 03:54 PM |
each item has it's given location,and item's code correspond to storage location | Robert Liu | Q&A | 3 | 03-28-2011 08:46 PM |
3DS Changeable Color | Greig Marshall | Q&A | 4 | 06-25-2008 01:36 AM |
Changing the height that a Transporter drops off an item to a Processor | KelvinHo | Q&A | 1 | 04-10-2008 09:29 AM |