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
df489d55
Commit
df489d55
authored
6 years ago
by
meta-androcto
Browse files
Options
Downloads
Patches
Plain Diff
object_cloud_gen: initial update 2.8, non version bump
parent
e7083d2b
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
object_cloud_gen.py
+18
-10
18 additions, 10 deletions
object_cloud_gen.py
with
18 additions
and
10 deletions
object_cloud_gen.py
+
18
−
10
View file @
df489d55
...
...
@@ -22,7 +22,7 @@ bl_info = {
"
name
"
:
"
Cloud Generator
"
,
"
author
"
:
"
Nick Keeline(nrk)
"
,
"
version
"
:
(
1
,
0
,
2
),
"
blender
"
:
(
2
,
7
8
,
5
),
"
blender
"
:
(
2
,
7
9
,
0
),
"
location
"
:
"
Tool Shelf > Create Tab
"
,
"
description
"
:
"
Creates Volumetric Clouds
"
,
"
wiki_url
"
:
"
https://wiki.blender.org/index.php/Extensions:2.6/Py/
"
...
...
@@ -443,7 +443,7 @@ def getActionToDo(obj):
class
VIEW3D_PT_tools_cloud
(
Panel
):
bl_space_type
=
'
VIEW_3D
'
bl_region_type
=
'
TOOLS
'
bl_region_type
=
'
UI
'
bl_category
=
'
Create
'
bl_label
=
"
Cloud Generator
"
bl_context
=
"
objectmode
"
...
...
@@ -499,10 +499,10 @@ class GenerateCloud(Operator):
# Prevent unsupported Execution in Local View modes
space_data
=
bpy
.
context
.
space_data
if
True
in
space_data
.
layers_local_view
:
self
.
report
({
'
INFO
'
},
"
Works with Global Perspective modes only. Operation Cancelled
"
)
return
{
'
CANCELLED
'
}
#
if True in space_data.layers_local_view:
#
self.report({'INFO'},
#
"Works with Global Perspective modes only. Operation Cancelled")
#
return {'CANCELLED'}
# Make variable that is the active object selected by user
active_object
=
context
.
active_object
...
...
@@ -920,8 +920,8 @@ class GenerateCloud(Operator):
cloudTexGroup
.
inputs
[
'
Scale
'
].
default_value
=
noiseCloudScale
# to cloud to view in cycles in render mode we need to hide geometry meshes...
firstObject
.
hide
=
True
cloud
.
hide
=
True
firstObject
.
hide
_viewport
=
True
cloud
.
hide
_viewport
=
True
# Select the object.
bounds
.
select_set
(
True
)
...
...
@@ -945,9 +945,16 @@ class GenerateCloud(Operator):
return
{
'
FINISHED
'
}
# List The Classes #
classes
=
(
VIEW3D_PT_tools_cloud
,
GenerateCloud
)
def
register
():
bpy
.
utils
.
register_module
(
__name__
)
for
cls
in
classes
:
bpy
.
utils
.
register_class
(
cls
)
bpy
.
types
.
Scene
.
cloudparticles
=
BoolProperty
(
name
=
"
Particles
"
,
...
...
@@ -972,7 +979,8 @@ def register():
def
unregister
():
bpy
.
utils
.
unregister_module
(
__name__
)
for
cls
in
reversed
(
classes
):
bpy
.
utils
.
unregister_class
(
cls
)
del
bpy
.
types
.
Scene
.
cloudparticles
del
bpy
.
types
.
Scene
.
cloudsmoothing
...
...
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