Giter VIP home page Giter VIP logo

c4ddev's People

Contributors

albertalomar avatar niklasrosenstein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

c4ddev's Issues

build-loader Pyhton code not working

Need to investigate this. In C4D, I get

Traceback (most recent call last):
  File "'loader.pyp'", line 252, in <module>
  File "<string>", line 42, in <module>
  File "<string>", line 152
    _urllib_parse_moved_attributes=[MovedAttribute("ParseResult","urlparse","urllib.parse"),MovedAttribute("SplitResult","urlparse","urllib.parse"),MovedAttribute("parse_qs","urlparse","urllib.parse"),MovedAttribute("parse_qsl","urlparse","urllib.parse"),MovedAttribute("urldefrag","urlparse","urllib.parse"),MovedAttribute("urljoin","urlparse","urllib.parse"),MovedAttribute("urlparse","urlparse","urllib.parse"),MovedAttribute("urlsplit","urlparse","urllib.parse"),MovedAttribute("urlunparse","urlparse","urll
ib.parse"),MovedAttribute("urlunsplit","urlparse","urllib.parse"),MovedAttribute("quote","urllib","urllib.parse"),MovedAttribute("quote_plus","urllib","urllib.parse"),MovedAttribute("unquote","urllib","urllib.parse"),MovedAttribute("unquote_plus","urllib","urllib.parse"),MovedAttribute("urlencode","urllib","urllib.parse"),MovedAttribute("splitquery","urllib","urllib.parse"),MovedAttribute("splittag","urllib","urllib.parse"),MovedAttribute("splituser","urllib","urllib.parse"),MovedAttribute("uses_fragment",
"urlparse","urllib.parse"),MovedAttribute("uses_netloc","urlparse","urllib.parse"),MovedAttribute("uses_params","urlparse","urllib.parse"),MovedAttribute("uses_query","urlparse","urllib.parse"),MovedAttribute("uses_relative","urlparse","urllib.parse"),]
                                 ^
IndentationError: expected an indented block

Try to run the code as is via standard Python gives

Traceback (most recent call last):
  File "test.py", line 1630, in <module>
    exec(b.b64decode(blob), vars(m)); nodepy=m; del blob, b, t, m;
  File "<string>", line 832, in <module>
NameError: name '__file__' is not defined

Error on loading c4ddev-loader.pyp

There is a error in the Console Cinema4d after starting program

Traceback (most recent call last):
File "'c4ddev-loader.pyp'", line 360, in
File "", line 382, in exec_
File "C:\Users\Dude\AppData\Roaming\MAXON\CINEMA 4D R17_8DE13DAD\plugins\c4ddev-0.1.3\lib\c4ddev\main.py", line 35, in
require('./resource')
File "", line 452, in call
File "", line 819, in resolve_and_load
File "", line 800, in load_module
File "", line 382, in exec_
File "C:\Users\Dude\AppData\Roaming\MAXON\CINEMA 4D R17_8DE13DAD\plugins\c4ddev-0.1.3\lib\c4ddev\resource.py", line 35, in
from nr.parse import strex
ImportError: No module named nr.parse

Make devtools module a Proxy module

If your reload Python plugins, the devtools module will also be reloaded. But the original module object might still be referenced in an already compiled Python Tag or Generator. If a Proxy object would be added to sys.modules under the entry devtools which proxies the actual module _devtools, that could resolve the issue.

Prevent "duplicate entry __init__.pyc"

Namespace packages all have their own __init__.pyc but usually with the same content as other packages in the same namespace. Packaging multiple packages of the same namespace into a single .egg adds all of their __init__.pyc files to the ZIP file, resulting in multiple entries of the same file.

We should check if the file being added already exists. If it does, we should then check if the file is just a namespace indicator. If it is, we can omitt it. Otherwise we should warn the user and still add multiple entries.

Missing 'import os' on scripting_server.py, class SourceObject

Hi Niklas,

Thank you creating and sharing this project.

I was getting this error:

C4DDev API EXtensions installed.
Copyright (c) 2015  Niklas Rosenstein
Binding C4DDev Scripting Server to localhost:2900 ...
C4DDev Scripting Server: running
Traceback (most recent call last):
  File "C:\Program Files\MAXON\Cinema 4D R18 Demo\plugins\c4ddev\plugins\scripting_server.py", line 367, in CoreMessage
    source.execute(scope)
  File "C:\Program Files\MAXON\Cinema 4D R18 Demo\plugins\c4ddev\plugins\scripting_server.py", line 144, in execute
    dirname = os.path.dirname(self.filename)
NameError: name 'os' is not defined

The 'os' module needs to be appended here (line 119, file scripting_server.py):
import sys, codecs, socket, hashlib, threading

After adding it and restarting C4D all works ok.

Command that does a description resource sanity check

This command would check if the directory structure is correct, warn for any missing files, check if all symbols used in the .res and .str are defined in the .h file, maybe even do a syntax check and report when a symbol in the .h file does not have a fixed value.

c4ddev.BlitClipMap() Todolist

  • Proper nearest-neighbour interpolation (currently just floors the coordinates)
  • Fix bilinear interpolation (results in a black line across the image when upscaling)
  • Implement bicubi interpolation
  • Performance improvements using BaseBitmap::GetLine()?
  • Accept c4d.bitmaps.BaseBitmap objects as parameters additionally to GeClipMaps (requires c4ddev::PyBaseBitmap_Get() to be implemented correctly)
  • Color mix by the alpha values

c4ddev run command must remove certain paths from PYTHONPATH

When the c4ddev script is created, nodepy sets the PYTHONPATH to make sure it can find all the modules that were installed by nodepy-pm. But these paths are not supposed to be set when starting C4D. This leads to quite some issues, especially when c4ddev is installed with Python 3 as it causes the Python 3 site.py to be imported instead of the C4D Python 2 site.py.

Update Docs: ChannelData::texflag values

Info on the bitsets used when rendering a shader in a specific material channel.

[OK] '{:b}'.format(c4d.TEX_TILE)
'1'
[OK] '{:b}'.format(c4d.TEX_ALPHA)
'100'
[OK] '{:b}'.format(c4d.TEX_MIRROR)
'10'
[OK] '{:b}'.format(c4d.TEX_BUMP)
'1000'

0000000000000001 Color
0000000100000001 Environment
0000000010000001 Transparency
0000000011000001 Reflectance
0000000001000001 Luminance
0000001101000001 Normal
0000001011000001 Displacement
0000000110111001 Bump1
0000000110011001 Bump3
0000000110001001 Bump2
0000000110101001 Bump4
0000000111000101 Alpha
0000001100000001 Diffuse

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.