Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[BUG] createObj("path", {...}) is invalid?

Are we not allowed to create path objects? The documentation doesn't say. If we aren't, then there's a spelling mistake in the error message: "ERROR: Tried to create an invlid object type. See the API Documentation for valid types." var someObj = createObj("path",{ fill: "#ff0000", width:70, height:240, controlledby: state.gmIdentity, layer: "objects" });
Note: Currently only  characters, handouts, attributes, and abilities  can be created. Other objects will be supported soon. From the wiki above createObj().
And I said, If we aren't, then there's a spelling mistake in the error message: "ERROR: Tried to create an invlid object type. See the API Documentation for valid types."
I think he was answering the part of your post where you said: Are we not allowed to create path objects? The documentation doesn't say. I will fix the "invlid" typo.