Skip to content

Instantly share code, notes, and snippets.

View marcgpuig's full-sized avatar

Marc Garcia Puig marcgpuig

View GitHub Profile
@marcgpuig
marcgpuig / custom_exporter.py
Created April 9, 2022 15:27
Custom Blender 3.1+ FBX Exporter: Individually export all the selected objects and centers them on X and Y.
# Individually export all the selected objects and centers them on X and Y.
#
# You have to provide the export folder path, if not provided, files
# will be exported under the same blend file directory under "/custom_export"
#
# Based on: https://blender.stackexchange.com/a/5383
import bpy
import os
@marcgpuig
marcgpuig / install_protobuf.bat
Last active May 16, 2018 13:25
BAT script that downloads and installs a ready to use protobuf build for CARLA (carla.org).
@echo off
rem BAT script that downloads and installs a ready to use
rem protobuf build for CARLA (carla.org).
rem Just put it in `Util/Build` and run it through a cmd
rem with the x64 Visual C++ Toolset enabled.
set local_path=%~dp0
set PROTO_VERSION=v3.3.2
@marcgpuig
marcgpuig / manual_control_2d_positions.py
Last active July 17, 2019 13:01
Example of a client code for CARLA simulator that allows you to render the position of each car.
#!/usr/bin/env python3
# Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma de
# Barcelona (UAB).
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
# Keyboard controlling for CARLA. Please refer to client_example.py for a simpler
# and more documented example.
@marcgpuig
marcgpuig / ScriptFixer.cs
Last active April 16, 2018 15:37
Basic Unity script for searching missing scripts
/// Copyright (c) 2017, Marc Garcia Puig
///
/// This work is licensed under the terms of the MIT license.
/// For a copy, see <https://opensource.org/licenses/MIT>.
///
/// This script provides you the ability to check all your
/// prefabs in the Assets folder and see if any of them have
/// missing scripts. You can spawn them with a single click
/// and clear all the containing missing scripts.
/// Remember to apply the changes to each prefab.