effect data and motion data syntax
-
AuthorPosts
-
Pyrorororo
Joined: Jan 2022 Posts: 21 Location: United States NewcomerSome 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?
DrewFinaleJoined: Dec 2019 Posts: 557 Location: United States SilverHere’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]]}
PyrorororoJoined: Jan 2022 Posts: 21 Location: United States NewcomerDrewFinaleJoined: Dec 2019 Posts: 557 Location: United States SilverThe 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.
-
AuthorPosts
Please login to reply to this topic.