Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
462db1e0
Commit
462db1e0
authored
13 years ago
by
Kalle-Samuli Riihikoski
Browse files
Options
Downloads
Patches
Plain Diff
Makes menu more interactive with selected objects.
parent
4e3db622
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
io_coat3D/coat.py
+34
-20
34 additions, 20 deletions
io_coat3D/coat.py
with
34 additions
and
20 deletions
io_coat3D/coat.py
+
34
−
20
View file @
462db1e0
...
...
@@ -545,34 +545,48 @@ class VIEW3D_MT_Coat_Dynamic_Menu(bpy.types.Menu):
layout
.
active
=
True
break
layout
.
active
=
False
else
:
layout
.
active
=
False
layout
.
operator
(
"
import_applink.pilgway_3d_coat
"
,
text
=
"
Import
"
)
layout
.
separator
()
layout
.
operator
(
"
export_applink.pilgway_3d_coat
"
,
text
=
"
Export
"
)
layout
.
separator
()
if
(
layout
.
active
==
True
):
layout
.
operator
(
"
import_applink.pilgway_3d_coat
"
,
text
=
"
Import
"
)
layout
.
separator
()
layout
.
menu
(
"
VIEW3D_MT_ImportMenu
"
)
layout
.
separator
()
layout
.
operator
(
"
export_applink.pilgway_3d_coat
"
,
text
=
"
Export
"
)
layout
.
separator
()
layout
.
menu
(
"
VIEW3D_MT_
Ex
portMenu
"
)
layout
.
separator
()
layout
.
menu
(
"
VIEW3D_MT_
Im
portMenu
"
)
layout
.
separator
()
layout
.
menu
(
"
VIEW3D_MT_Ex
tra
Menu
"
)
layout
.
separator
()
layout
.
menu
(
"
VIEW3D_MT_Ex
port
Menu
"
)
layout
.
separator
()
if
(
len
(
bpy
.
context
.
selected_objects
)
==
1
):
if
(
os
.
path
.
isfile
(
bpy
.
context
.
selected_objects
[
0
].
coat3D
.
path3b
)):
layout
.
operator
(
"
import_applink.pilgway_3d_coat_3b
"
,
text
=
"
Load 3b
"
)
layout
.
menu
(
"
VIEW3D_MT_ExtraMenu
"
)
layout
.
separator
()
if
(
os
.
path
.
isfile
(
Blender_export
)):
if
(
len
(
bpy
.
context
.
selected_objects
)
==
1
):
if
(
os
.
path
.
isfile
(
bpy
.
context
.
selected_objects
[
0
].
coat3D
.
path3b
)):
layout
.
operator
(
"
import_applink.pilgway_3d_coat_3b
"
,
text
=
"
Load 3b
"
)
layout
.
separator
()
layout
.
operator
(
"
import3b_applink.pilgway_3d_coat
"
,
text
=
"
Bring from 3D-Coat
"
)
layout
.
separator
()
if
(
os
.
path
.
isfile
(
Blender_export
)):
layout
.
operator
(
"
import3b_applink.pilgway_3d_coat
"
,
text
=
"
Bring from 3D-Coat
"
)
layout
.
separator
()
else
:
if
(
os
.
path
.
isfile
(
Blender_export
)):
layout
.
active
=
True
layout
.
operator
(
"
import3b_applink.pilgway_3d_coat
"
,
text
=
"
Bring from 3D-Coat
"
)
layout
.
separator
()
else
:
if
(
os
.
path
.
isfile
(
Blender_export
)):
layout
.
operator
(
"
import3b_applink.pilgway_3d_coat
"
,
text
=
"
Bring from 3D-Coat
"
)
layout
.
separator
()
class
VIEW3D_MT_ImportMenu
(
bpy
.
types
.
Menu
):
bl_label
=
"
Import Settings
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment