https://github.com/FreeCAD/FreeCAD/pull/1638
This adds the ability to enter things like 6 * 25.4 into the distance line edit widget during scaling operations in the image workbench. Can also enter something like math.pi * 3 or 2**3, etc. Basically, any legal python input can be used.
Using eval() is not considered a secure way of doing things, but in this context the user would be entering malicious code into his own computer. Also, what can the user do in eval() that he can't already do just by entering directly into the python console?
- FreeCAD forum Development Pull Requests Archived Pull Requests
- Search
-
- It is currently Fri Mar 29, 2024 1:18 am
- All times are UTC
Add eval() to image scaling in image workbench
Merged, abandoned or rejected pull requests are moved here to clear the main Pull Requests forum.
-
- Veteran
- Posts: 5505
- Joined: Thu Apr 05, 2018 1:53 am
Return to “Archived Pull Requests”
Jump to
- Users
- ↳ Help on using FreeCAD
- ↳ Python scripting and macros
- ↳ Install / Compile
- ↳ Packaging
- ↳ Open discussion
- ↳ Announcements & Features
- ↳ Users Showcase
- ↳ Job offers
- ↳ Tutorials and videos
- ↳ Toponaming forum
- Development
- ↳ Developers corner
- ↳ Google Summer of Code (GSoC)
- ↳ Pull Requests
- ↳ Archived Pull Requests
- ↳ Part Design module development
- ↳ Assembly
- ↳ FEM
- ↳ CfdOF / CFD
- ↳ Path/CAM
- ↳ Draft, Arch & BIM
- ↳ IFC
- ↳ Wiki
- ↳ Translation
- ↳ UX/UI Design
- ↳ TechDraw
- ↳ Material
- Forums in other languages
- ↳ Forum français
- ↳ Forum in Deutsch
- ↳ Foro en Español
- ↳ Forum Italiano
- ↳ 日本語フォーラム
- ↳ Форум на русском языке
- ↳ Forum po polsku
- ↳ Foro em Português
- ↳ Magyar fórum
- ↳ 中文论坛 / 中文論壇(简体 / 繁體)
- ↳ Форум українською
- ↳ 한국어 포럼