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
|
|||
|
|||
Itemtype color change in Combiner
Hi,
Is there a way to change the color of items that go into a pallet in the combiner. The items are coming from port 2. When I tried to change the color using "colorarray" command with "item" as the object, it only changed the pallet color. Is there a command to point to the boxes inside the pallet so I can control the color. Thanks |
#2
|
||||
|
||||
Hi, the easiest way would be to use another Itemtype for your boxes and bring in a "if" statement to find out if the Itemtype is correct.
Also you could ask "port" in the "if" statement. So it should look for example like this: if(port==2) { colorarray(item); }
__________________
Hemmi |
The Following User Says Thank You to Sebastian Hemmann For This Useful Post: | ||
George Serhan (05-09-2013) |
#3
|
||||
|
||||
Solution with Itemtypes:
if(itemtype==2) { colorarray(item); }
__________________
Hemmi |
The Following 2 Users Say Thank You to Sebastian Hemmann For This Useful Post: | ||
Jörg Vogel (05-09-2013) |
#4
|
||||
|
||||
Hello George,
OnExit the boxes are the content of item. The reference can be the rank(item, num) Jörg |
The Following 2 Users Say Thank You to Jörg Vogel For This Useful Post: | ||
Phil BoBo (05-09-2013) |
#5
|
|||
|
|||
Hi Jörg,
You are right, the items (pallet and boxes are one after being combined) (OnExist command) is what I used to change the color once the pallet is full. I ended up pointing to the boxes using a node, then looping through the number of boxes using "objectexists" command. I think it is similar to the rank(item,num) you mentioned. Thanks George |
Thread | Thread Starter | Forum | Replies | Last Post |
how to change color of 3D object made in 3D Max | qin tian | Q&A | 3 | 03-26-2013 10:27 PM |
Change cell color in Exceltable | Stefan Jerenz | Tips and Tricks | 6 | 04-24-2012 05:17 AM |
How to change the color of my 3DS model? | Warren Wu | Q&A | 2 | 09-04-2011 08:49 AM |
How to partially change the color of a 3D object ? | Veronique Dossogne | Q&A | 3 | 04-06-2010 09:06 AM |
How to change color when full? | Jamie Santa Ana | Q&A | 2 | 09-23-2009 06:00 PM |