Skip to main content

GPLv3 license PyPI pyversions Platforms PyPI version fury.io GitHub Workflow Status (with event) Test coverage

ValveSMD

ValveSMD is a Python library designed to parse and edit .SMD files, which stores 3D mesh data to be compiled for use in Valve's Source engine.

Full documentation: https://pysourcesdk.github.io/ValveSMD/

Installation

PyPI

ValveSMD is available on the Python Package Index. This makes installing it with pip as easy as:

pip3 install valvesmd

Git

If you want the latest code or even feel like contributing, the code is available on GitHub.

You can easily clone the code with git:

git clone git@github.com:pySourceSDK/ValveSMD.git

and install it with:

python3 setup.py install

Usage

Here's a few example usage of ValveSMD

Parsing

Parsing can be done by creating an instance of Smd with a path.

>>> from valvesmd import Smd
>>> smd = Smd('C:/modelsrc/tf/props_mining/rock005.smd')

Utility functions

A few functions are provided to perform basic transformations.

>>> from valvesmd import *
>>> SmdScale(smd, 2) # 2x scale
>>> SmdMirror(smd, 'x') # Mirroring on 'x', 'y' or 'z' axis
>>> SmdMatReplace(smd, 'wood', 'metal') # replace a material name (without $cdmaterial and extension)

Metadata

Release files for valvesmd 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for valvesmd 1.0.2
File Size Uploaded
valvesmd-1.0.2.tar.gz 19.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for valvesmd 1.0.2
File Interpreter ABI Platform
valvesmd-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 38.5 kB

Release files / valvesmd-1.0.2.tar.gz

Download URL valvesmd-1.0.2.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5be8b6f24642f83f783fe1b8197744daa084436104e4852e4ec67d1268a1c889
BLAKE2b-256 checksum
How to use checksums
89267a915cf66a9360a95fc41e07949a720fe5801639232a980d3363ab64a106
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / valvesmd-1.0.2-py3-none-any.whl

Download URL valvesmd-1.0.2-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f93eb45a4bad8a803b5192b5e8b05a21e577cc9f2ff4e4bc0122e43334ea892
BLAKE2b-256 checksum
How to use checksums
81fbdd33fd7dfba574cf8372e771524143c29b27298e012ff1209131d8b4cbb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page