Открыть боковую панель
nikitronn
sverchok
Коммиты
8ef515fa
Не подтверждена
Коммит
8ef515fa
создал
Фев 25, 2018
по автору
nikitron
Зафиксировано автором
GitHub
Фев 25, 2018
Просмотр файлов
not a solution
владелец
ce95e30d
Изменения
1
Скрыть пробелы
Построчно
Рядом
nodes/generators_extended/profile_mk2.py
Просмотр файла @
8ef515fa
...
...
@@ -551,9 +551,11 @@ class SvPrifilizer(bpy.types.Operator):
names
=
str
([
o
.
name
for
o
in
objs
])[
1
:
-
2
]
# collect paths
op
=
[]
clos
=
[]
for
obj
in
objs
:
for
spl
in
obj
.
data
.
splines
:
op
.
append
(
spl
.
bezier_points
)
clos
.
append
(
spl
.
use_cyclic_u
)
# define path to text
values
=
'# Here is autogenerated values,
\n
# Please, rename text to avoid data loose.
\n
'
...
...
@@ -564,7 +566,7 @@ class SvPrifilizer(bpy.types.Operator):
out_points
=
[]
out_names
=
[]
ss
=
0
for
ob_points
in
op
:
for
ob_points
,
clo
in
zip
(
op
,
clos
)
:
values
+=
'# Spline %a
\n
'
%
(
ss
)
ss
+=
1
# handles preperation
...
...
@@ -645,12 +647,12 @@ class SvPrifilizer(bpy.types.Operator):
# preserving overlapping
#out_points.append(ob_points[0].co[:])
#out_names.append(['C'])
if
not
line
:
if
clo
and
not
line
:
# hacky way till be fixed x for curves not only for lines
values
+=
'# hacky way till be fixed x
\n
# for curves not only for lines'
values
+=
'
\n
L '
+
self
.
stringadd
(
ob_points
[
0
].
co
,
ob_points
[
0
].
select_control_point
)
values
+=
'
\n
x
\n\n
'
el
se
:
el
if
clo
:
values
+=
'
\n
x
\n\n
'
if
self
.
knotselected
:
...
...
@@ -977,5 +979,5 @@ def unregister():
_
=
[
unregister_class
(
cls
)
for
cls
in
reversed
(
classes
)]
#
if __name__ == '__main__':
#
register()
#if __name__ == '__main__':
# register()
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать