bpy.data.curves.new(name= "test" , type = 'SURFACE') does not create a surface #29369
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#29369
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
%%%import bpy
create a nurb-surface with function class bpy.types.BlendDataCurves.new()
surf = bpy.data.curves.new(name= "test" , type = 'SURFACE')
code for splines and control-points
obj = bpy.data.objects.new("test_obj", surf)
bpy.context.scene.objects.link(obj)
create a surface with primitive function to compare the results.
bpy.ops.surface.primitive_nurbs_surface_curve_add()
Changed status to: 'Open'
%%%It's failure of code which tries to guess object type from Curve datablock. It's needed in cases when you're changing object datablock.
Probably it can be improved so it wouldn't change object's type when it's not obvious which type to use and when both of Curve and Surface types can be used.
Will look into this issue.%%%
%%%thanks, Sergey for the quick response.%%%
%%%Fixed in svn rev42126. Thanks for the report, closing it now.%%%
Changed status from 'Open' to: 'Resolved'