Method for applying textures/graphics (color acceptable) to arbitrary part

Hello All,

I am creating a simulation involving a potentially infinite number of cut pieces.  I have a smart component that uses parametric boxes, and another implementation that uses linear extrusion to create the parts.  The issue is they are grey by default.  I need to apply a wood texture, and if not that then at least set them to  a more appropriate color.  

The closest solutions I have come across are both ineffective and messy.  
1. use paint applicator, this was tedious to set up and I was not happy with the results.  

2. sourcing a highlighter component and applying it to each generated part, there is a bug with the highlighter effect not being drawn, and it needs to be manually toggled off and back on to show the color.  

I would like a clean, generic solution that could easily be applied to another use case in the future without needing to bury some nonsense in my sim behind the scenes.  

To my knowledge, this functionality is not present in the latest version of RS, but I may very well be wrong.  

Thank you!
-Mike

Best Answer

  • KennyJiang
    Answer ✓
    Do you mean to create boxes with dynamic sizes and textures?

Answers

  • You can use smart component named 'source' and select your textured box model as input. To create a copy of your box, pulse the signal 'execute' of the smart component.
  • Hello Kenny, 

    Thank you for your answer, but that will not work.  I do not have a modeled box, because the box is not created until time of simulation.  I can't create boxes to source, because I have an infinite number of boxes, it is not feasible to manually create, and texture hundreds, if not thousands of models.  I create the boxes parametrically; I need to be able to apply a texture to an arbitrary part.  

    Let me know if that made sense.  
    -Mike
  • I am creating dynamic boxes, they have fixed dimensions of height and width, but an arbitrary length.  The issue is I cannot apply a texture to a part that is not generated yet, what I need to happen is b asically this:

    1. use linear extrusion to create a box with length X
    2. Source a copy of this linear extrusion, lets call it box_1 (I will be creating several of these ~40 in the ifnal sim.
    3. Apply a color or texture to box_(n) after it is generated in real time.