Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Snap all vertices to nearest world grid

  • Snap all vertices to nearest world grid

    Posted by Viktor Antonov on November 7, 2018 at 11:32 am

    Hi All. I have a mesh with many vertices floating point, for example 4.24, 5.1242, etc. Can I round them up to the nearest whole number to 4, 5, etc?
    Manually doing is not an option. there are about 500-1000. In the future, the models will be even more difficult. Also, if it were possible, then to the nearest 1/4 number. For example, with reference to 0.25. But first you need exactly to bind 1 cm to all vertices. Thanks

    Brian Jones replied 7 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Brian Jones

    November 9, 2018 at 2:27 am

    it can be done with xpresso like this

    12875_roundpointsposition.c4d.zip

    two nulls with xpresso – one that will round the points of an object to whole numbers, one that will round to 1/4 values.
    -Each setup so that anything dropped in as a child will have it’s points set to rounded values.
    -Works only on editable objects but won’t break on parametric objects, just won’t do anything.
    -The 1/4 round is done by multiplying by 4 rounding then dividing by 4.
    -If you really meant round up to the next highest number and not round down if less than .5 or up if more than .5 then the equations in the Formula nodes should use Ceil(Value1) not Round(Value1) (or ceil/round – not case sensitive)

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy