Fantasy Grounds Merchandise
Page 2 of 5 First 1 2 3 4 ... Last

Thread: Image rotation?

  1. #11
    List of Extensions with Image Manipulation

    Fantasy Grounds Unity (FGU) extensions that utilize image manipulation through the FGU API, particularly functions like setRotation, setBitmap, setAnchor, and the Widget API.

    • Decked Out: Created by Saagael, this extension uses tokens as card images and manages face-down states by toggling visibility between face and back widgets. It also includes functional innovations like "flip" and "peek" mechanics and enlarged hover images for legibility.
    • Carried Combatants: These combined extensions feature a Synchronized Movement & Rotation system. When a "carrier" token (like a vehicle) is rotated using setRotation, the extension programmatically calculates and updates the orientation and position of all "carried" tokens to match.
    • FG-5E-Enhancer: This extremely complex, OUTDATED utility uses bitmap widgets to add dynamic graphical data to tokens. It manipulates images to display horizontal health bars, blood splatters, and "blood pools" that appear under tokens upon death. It also uses text widgets for altitude tracking.
    • Natural Selection: This extension handles spatial arbitration when tokens are stacked on the same grid space. It uses a pop-up window (built with a genericcontrol) to show token icons and allows users to manipulate Z-order to bring a specific token to the top of the stack.
    • Aura Effects: Managed by Bmos, this extension renders complex geometric shapes like oriented 3D rectangles (3drect). These overlays use an orientation parameter to synchronize the aura’s rotation with the source token or to represent directional effects like breath weapons.
    • Generic Actions: This extension utilizes the ImageLayer API to place graphics, such as arrows or area-of-effect templates, directly onto map layers.

    EDIT: LINKS ARE ADDED.
    Last edited by Tempered7; April 14th, 2026 at 22:03.
    I scribble Solo RPG methods and reviews for Resources in my All Things Solo blog.
    Now with Solo Builds for DnD 5E. And All Solo Modules for FGU WIP.
    LIST OF ALL FREE FGU STUFF
    //Design with Systems, not Custom Solutions!

  2. #12
    Thanks for that! I'll let you know how it goes
    DISCORD / EXTENSIONS:
    Combat: Crit Dmg Options, Effect FX, Enlarge/Reduce, Flavorful Names, Hidden Death Saves, Lingering Injuries (PL), Major Injuries (DK), Special Dmg FX, Summoner, Weapon Dmg Props
    Skills: Crits & Fumbles, Fail Forward, Toolkit Actions
    DM Tools: DB Search, Dynamic Pricing, Party Info, Redacted Table Fields
    Just For Fun: Achievement Tracker, Boar Riding, Dragon Cards, Drink & Sink, Fishing Fun, Seven Seas, Tarot, Turtle Race
    Puzzles: Cryptex, Volvelle, Word Key

  3. #13
    -double post-
    I scribble Solo RPG methods and reviews for Resources in my All Things Solo blog.
    Now with Solo Builds for DnD 5E. And All Solo Modules for FGU WIP.
    LIST OF ALL FREE FGU STUFF
    //Design with Systems, not Custom Solutions!

  4. #14
    Quote Originally Posted by jkeller View Post
    Thanks for that! I'll let you know how it goes
    Good luck! And fingers crossed xD
    Sometimes it combines things that it shouldnt so it might not be 100% accurate.
    I scribble Solo RPG methods and reviews for Resources in my All Things Solo blog.
    Now with Solo Builds for DnD 5E. And All Solo Modules for FGU WIP.
    LIST OF ALL FREE FGU STUFF
    //Design with Systems, not Custom Solutions!

  5. #15
    Quote Originally Posted by Tempered7 View Post
    Orientation is handled programmatically through the setRotation function, which supports floating-point degree values for free rotation.
    I don't see setRotation in the documentation. I tried calling it, and I don't get a "missing function" error, so that's good. But it doesn't seem to do anything.

    I tried setRadialPosition(0, 50), and that does move the widget, but does not rotate it.
    Last edited by jkeller; April 15th, 2026 at 13:20.
    DISCORD / EXTENSIONS:
    Combat: Crit Dmg Options, Effect FX, Enlarge/Reduce, Flavorful Names, Hidden Death Saves, Lingering Injuries (PL), Major Injuries (DK), Special Dmg FX, Summoner, Weapon Dmg Props
    Skills: Crits & Fumbles, Fail Forward, Toolkit Actions
    DM Tools: DB Search, Dynamic Pricing, Party Info, Redacted Table Fields
    Just For Fun: Achievement Tracker, Boar Riding, Dragon Cards, Drink & Sink, Fishing Fun, Seven Seas, Tarot, Turtle Race
    Puzzles: Cryptex, Volvelle, Word Key

  6. #16
    pindercarl's Avatar
    Join Date
    Jan 2015
    Posts
    1,336
    Blog Entries
    2
    Quote Originally Posted by jkeller View Post
    I don't see setRotation in the documentation. I tried calling it, and I don't get a "missing function" error, so that's good. But it doesn't seem to do anything.

    I tried setRadialPosition(0, 50), and that does move the widget, but does not rotate it.
    I took a quick look at the code and while widget does expose a LUA function "setRotation", it is only used by the text widget. If I recall correctly, John added that to rotate the text on the character sheet tabs. Historically, the tabs used different images for each tab. It may only support rotation in 90-degree increments, but I didn't dig far enough to verify. Rotating the text widget does rotate the frame of the widget. You could, theoretically draw the cards with frames. I'm definitely not an expert on rulesets or extensions. I can look at the scripts registered to the API, but I'm not familiar with their actual usage.

  7. #17
    I think the AI picked it up from very old documents and combined it as a whole [as an answer to how do you rotate images].
    setOrientation and setOrientationMode under tokeninstance is there, but I couldnt find setRotation in the wiki/pdf I have [network problems prevent me from entering it right now].
    I scribble Solo RPG methods and reviews for Resources in my All Things Solo blog.
    Now with Solo Builds for DnD 5E. And All Solo Modules for FGU WIP.
    LIST OF ALL FREE FGU STUFF
    //Design with Systems, not Custom Solutions!

  8. #18
    I found where the AI gone wrong: setRotation is a Unity function, not FGU function except what carl said.
    https://docs.unity3d.com/6000.0/Docu...tRotation.html

    setOrientation under tokeninstance does a similar thing I guess.

    function setOrientation(orientation)

    Sets the orientation, i.e. rotation state, of the token.
    Parameters
    orientation (number)
    The desired new rotation value
    Last edited by Tempered7; April 15th, 2026 at 19:11.
    I scribble Solo RPG methods and reviews for Resources in my All Things Solo blog.
    Now with Solo Builds for DnD 5E. And All Solo Modules for FGU WIP.
    LIST OF ALL FREE FGU STUFF
    //Design with Systems, not Custom Solutions!

  9. #19
    pindercarl's Avatar
    Join Date
    Jan 2015
    Posts
    1,336
    Blog Entries
    2
    Quote Originally Posted by Tempered7 View Post
    I found where the AI gone wrong: setRotation is a Unity function, not FGU function except what carl said.
    https://docs.unity3d.com/6000.0/Docu...tRotation.html

    setOrientation under tokeninstance does a similar thing I guess.
    LLMs are not a very good match for documenting the FG API. The "accuracy" of an LLM is directly proportional to the amount input data and there is not enough data for the LLM to be reasonably predictive. Lacking enough data it will hallucinate results based on other APIs. However, setRotation is a registered LUA API function of the base widget class and does rotate text widgets.

    setRotation.jpg

  10. #20
    Quote Originally Posted by pindercarl View Post
    LLMs are not a very good match for documenting the FG API. The "accuracy" of an LLM is directly proportional to the amount input data and there is not enough data for the LLM to be reasonably predictive. Lacking enough data it will hallucinate results based on other APIs. However, setRotation is a registered LUA API function of the base widget class and does rotate text widgets.

    setRotation.jpg
    Unfortunately yes, Carl. At least its a start point though.

    EDIT: Oh, maybe it can be used as a text rotation over cards?

    While Im at it, I checked all the other functions in the Summary, and they are all there. Z-Order is under many topics. Only setRotation is not in the wiki.
    But I have no idea if those can actually be used for the same thing such as cards as token, etc.
    I scribble Solo RPG methods and reviews for Resources in my All Things Solo blog.
    Now with Solo Builds for DnD 5E. And All Solo Modules for FGU WIP.
    LIST OF ALL FREE FGU STUFF
    //Design with Systems, not Custom Solutions!

Page 2 of 5 First 1 2 3 4 ... Last

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in