Announcement

Collapse
No announcement yet.

Color or Image change via commands

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Color or Image change via commands

    Hello,

    I need to change the color or image applied to a rectangle via a command, Im trying with either the color or an image whatever works first.

    I have several rectangles on my scene, I am using the following to get this to work but the command only works once

    Code:
    THIS_SCENE*TREE*$T18BULLET02*TEXTURE*IMAGE SET IMAGE*T18_CONCEPTS/T18_COLORS/Daypart_Noon;
    Please share a command that will get this done by either changing the color of the rectangles or the image applied to the rectangles to color them


    Again the issue I have is that the command only works once, the containers that have the colors/images are named

    T18BULLET01
    T18BULLET02
    T18BULLET03 etc


    Thanks



  • #2
    Did you consider DataPool?
    RENDERER*FUNCTION*DataPool*Data SET MAT1=MATERIAL MATERIAL*GLOBALS/Materials/WHITE
    This command will set the DataPoolMaterial variable MAT1 to be the material called White.
    Is the same as writing this:
    DP_SET MAT1=MATERIAL MATERIAL*GLOBALS/Materials/WHITE

    This works for any DataPool.
    Simply name your variable in the DataPool plugin image or text or any of the other babies in there and assign a value to it.
    THIS_SCENE*FUNCTION*DataPool*Data SET MyVariableName=Value
    Is the same as writing this:
    DP_SET MyVariableName=Value

    Let me know if you need more help with this

    Comment

    Working...
    X