Tabletop Simulator

Tabletop Simulator

Not enough ratings
Easy Object Editor! (position, scale, rotation)
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: Misc
File Size
Posted
Updated
27.380 KB
15 Nov, 2016 @ 6:01am
29 Nov, 2016 @ 5:31am
3 Change Notes ( view )

Subscribe to download
Easy Object Editor! (position, scale, rotation)

Description
This mod contains two tools: one designed to easily be able to edit the scale, the position and the rotation of objects in your scene, and another to continuously track the position, rotation and scale of an object.

This mod has mostly been phased out by the introduction of the Gizmo tool, though hopefully you can still find some use from it.

[www.paypal.com]
_______________________________________________________________

Included in this mod:
  • Easy Object Editor
  • Easy Object Inspector
_______________________________________________________________

Easy Object Editor

What it's for
This tool can be used to change the local position, rotation, and scale of multiple objects in your game using an offset value, a multiplier, or any other mathematical formula. For example, moving a collection of objects forward 10 units, or scaling a collection of objects in half.

How to use it
You can change what the card does by editing its name and description.

The card will detect GUIDs in its name, seperated by commas, dashes, spaces or whatever you want. You can edit multiple objects at once this way.

XYZ values are detected after "position:", "rotation:" and "scale:" on the same line. All of these input lines are optional.

The XYZ values on a line can be seperated by any means; commas, spaces etc.

A hash (#) will use the existing XYZ value of that object. Hashes can be modified using math functions:

+ : Add to the value.
- : Take away from the value.
* : Multiply the value by a number.
/ : Divide the value by a number.
^ : Multiply by the power of a number.

This must be formatted as "#(math function)(number)", else it will interpret the modifying number as the next number in the XYZ list.

For example:
Position: #, #+10
This would raise the object up by 10 inches.

If a line has no values, it will ignore that line's modifying function (positioning, rotating or scaling).
If there are less than three values on the same line, it will keep the object's succeeding XYZ values the same.
If there are more than three values, it will ignore the excess.

Save this tool to your chest. When you get an update, be sure to update your version to the newest one from the Workshop!

_______________________________________________________________

Easy Object Inspector

What it's for
This tool is used to track the position, the rotation and the scale of an object.

How to use it
Put a GUID anywhere in the title for the card to start tracking the object with that GUID. The card will update every frame. You can add little notes for yourself beside it, if you like. The note will round the values to 2 decimal places by default for easy readability, but this can be changed within the script.

Tags: gizmo buddy table setup assistant set-up
12 Comments
Markimus  [author] 17 Aug, 2020 @ 1:18am 
@Bazil Ohh nice, moving objects out of the way on demand is definitely a great use case! Moving the card beneath the table seems legit too. Glad I could help. :)
Bazil 15 Aug, 2020 @ 4:30pm 
@Markimus - I have a game where I needed to move the town info cards, and the layered infinite bag (box tiles) for the respective shop cards out of the way between adventures. So about 200 GUIDs. These cards are great, since I can use one to call others to call the info cards and so forth. With a little button position tweaking, I was even able to get the card to ride in the table so you only ever see the text.
Markimus  [author] 15 Aug, 2020 @ 1:04pm 
@Unreal Ed There's tutorials you can find online, though it's essentially three images with hyperlinks. It's important that the last image in the row is the one that links off of Steam.
Markimus  [author] 15 Aug, 2020 @ 1:02pm 
@Bazil I'm happy you found this mod useful even after the advent of the gizmo tool. What did you use it for if you don't mind me asking?
Unreal Ed 14 Aug, 2020 @ 6:06pm 
How did you add the follow/gift/donate set of buttons to your mod's description?
Bazil 13 Aug, 2020 @ 11:10am 
Actually, since I only needed position and not rotation or scale, I was able to just swap the code calls for Name and Description. All set!
Bazil 13 Aug, 2020 @ 10:16am 
Is there a way to add the ID's directly to the code instead of using the name of the Object Mover? I am in need of a few more than 30 ID's and would like to not have to use multiple cards (30 fit in one name line)
Apocal 8 Aug, 2017 @ 7:01pm 
Very helpful, thank you.
Tragic 9 Feb, 2017 @ 4:07pm 
I took a closer look and those position cards have a variable you can set to choose the decimal place.
Tragic 9 Feb, 2017 @ 3:06pm 
This is a great mod.... is there a way to make it output to more decimal places? A good addition would be a way to change this on the setting card on the fly... maybe a value you can enter a number 1-5 or w/e to set the decimal place value.