effect data and motion data syntax

Home English effect data and motion data syntax

Pyrorororo 2023-02-16 14:55:36
2 voices
3 replies
  • Author
    Posts
  • Pyrorororo
    Joined: Jan 2022
    Posts: 21
    Location: United States
    Newcomer
    Likes:

    Some examples in documentation look like they use curly brackets { } and others are [ ] square, does this matter for syntax.

     

    I’m looking for a copy and paste sample of syntax for having an effect take place in another spot in 3d than the positon…it doesn’t even have to move. Do I still need to enter as if pos 1 and time to position 2 is there even if its doesn’t move?

    DrewFinale
    Joined: Dec 2019
    Posts: 557
    Location: United States
    Silver
    Likes:

    Here’s a snipped on square [ ] versus curly { } brackets from Programmer documentation: Effect Data and Motion Data:

     

    Syntax of Motion Data and Effect Data fields

    The syntax of both the Motion Data and Effect Data fields is a pair of curly braces defining an object with attribute-value pairs in square brackets within the curly braces.

     

    In other words, both curly and square brackets are used.

     

    You don’t need include a movement if you simply want a fixed offset. To offset an effect from a position, the syntax is {[pos [t0 x0 y0 z0]]}

     

    For example, to offset an effect 5m above a firing position (y coordinate), the Effect Data syntax is {[pos [0 0 5.0 0]]}

     

    Pyrorororo
    Joined: Jan 2022
    Posts: 21
    Location: United States
    Newcomer
    Likes:

    still seems to be easy to crash, if syntax is wrong. You don’t need the t, x, y ,or z. If you put numbers in only tough, how is it differentiating, like does it need commas or spaces between x and y?

    DrewFinale
    Joined: Dec 2019
    Posts: 557
    Location: United States
    Silver
    Likes:

    The letters “t”, “x”, “y” and “z” are just labels to help explain the order of the values within the syntax.

     

    In practice, only the values are specified, the letters are not included.

     

    For example, to offset an effect 5m above a firing position (y coordinate), the Effect Data syntax is {[pos [0 0 5.0 0]]}. A space is the delimiter between each value.

Please login to reply to this topic.